Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadzenDropDown.ClearSearchAfterSelection is confusing #1294

Open
Mertsch opened this issue Dec 21, 2023 · 0 comments
Open

RadzenDropDown.ClearSearchAfterSelection is confusing #1294

Mertsch opened this issue Dec 21, 2023 · 0 comments

Comments

@Mertsch
Copy link

Mertsch commented Dec 21, 2023

Describe the bug
When using ClearSearchAfterSelection=True on RadzenDropDown
See https://blazor.radzen.com/dropdown-filtering with ClearSearchAfterSelection=true/>
The filter (not search) is cleared at any time a selection happens. Which is something that happens during the selection itself. Since you are in typing mode while using the filter, it's natural to use the arrow keys to select an item. This clears the filter.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://blazor.radzen.com/dropdown-filtering
  2. Add ClearSearchAfterSelection=true
  3. Try to use up/down keys on the filtered list
  4. See filter disappearing

Expected behavior
My suggestion remove the ClearSearchAfterSelection property (as it's name is misleading) and introduce a ClearFilterOnClose (or similar) and clear the filter value when the user closes the dropdown, which means the user has actually selected something, rather then navigating a list.

Desktop (please complete the following information):

  • OS: Win
  • Browser Fx
  • Version 121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant