[PR #2180] Reset select on filter #3116

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

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

State: closed
Merged: Yes


PR for fixing a space issue in filtering a dropdown.
see: #2174

When you are typing in the filter and an item in the dropdown is already selected a press on the spacebar will result in the item being reselected and the space being eaten/ignored.

When typing the assumption is you want to select something else, so resetting the selected index to -1 will make sure you can still type a space. Moving with the arrowkeys and then space still works. Made it a parameter so its opt-in to prevent unforseen and unwanted behavior in other usecases.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/2180 **State:** closed **Merged:** Yes --- PR for fixing a space issue in filtering a dropdown. see: #2174 When you are typing in the filter and an item in the dropdown is already selected a press on the spacebar will result in the item being reselected and the space being eaten/ignored. When typing the assumption is you want to select something else, so resetting the selected index to -1 will make sure you can still type a space. Moving with the arrowkeys and then space still works. Made it a parameter so its opt-in to prevent unforseen and unwanted behavior in other usecases.
claunia added the pull-request label 2026-01-29 18:21:59 +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#3116