radzenhq / radzen-blazor

Radzen Blazor is a set of 90+ free native Blazor UI components packed with DataGrid, Scheduler, Charts and robust theming including Material design and FluentUI.
https://www.radzen.com
MIT License
3.61k stars 807 forks source link

Closing Blazor Dropdown/AutoComplete "steals" focus #774

Closed matjankow closed 1 year ago

matjankow commented 1 year ago

Description Using the Radzen AutoComplete and clicking in another text field sets the cursor back to the original autocomplete.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://blazor.radzen.com/autocomplete sample
  2. Click into the first AutoComplete top left labeled "AutoComplete", type something
  3. Click into another AutoComplete, e,g the one labeled "Custom filtering"
  4. -> Cursor is back to the first AutoComplete

Expected behavior Cursor stays in the control last clicked

Desktop (please complete the following information):

matjankow commented 1 year ago

The same happens with a DropDown etc., seems to be a change in the closePopup JavaScript.

To Reproduce

  1. Page with a RadzenDropDown and a RadzenText
  2. Open the dropdown for the RadzenDropDown
  3. Click into the RadzenText control -> Focus goes back to the RadzenDropDown