[PR #2389] RadzenDropdown: correctly close popup on item selection, ignoring OpenOnFocus #1295 #3239

Closed
opened 2026-01-29 18:22:34 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/2389

State: closed
Merged: Yes


The PR fixes #1295, and uses the ClosePopup function to handle the focus it gets, and not reopen the popup on selection.

can be tested by giving the dropdown in DropDownFiltering.razor a OpenOnFocus=true, and overwriting the OnAfterRender with the following :

protected override async Task OnAfterRenderAsync(bool firstRender)
{
    if (firstRender)
    {
        await radzenDropDown.FocusAsync();
    }
}

then selecting an item in the dropdown

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/2389 **State:** closed **Merged:** Yes --- The PR fixes #1295, and uses the ClosePopup function to handle the focus it gets, and not reopen the popup on selection. can be tested by giving the dropdown in `DropDownFiltering.razor` a `OpenOnFocus=true`, and overwriting the `OnAfterRender` with the following : ``` protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await radzenDropDown.FocusAsync(); } } ``` then selecting an item in the dropdown
claunia added the pull-request label 2026-01-29 18:22:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3239