MudSelect OnKeyDown event is not invoked on alphanumeric characters input while selection combo is open
#8,647 opened on 2024/04/11
Repository metrics
- Stars
- (10,394 個のスター)
- PR merge metrics
- (平均マージ 6d 6h) (30d で 108 merged PRs)
説明
Bug type
Component
Component name
MudSelect
What happened?
MudSelect OnKeyDown event is not invoked on alphanumeric characters input while selection combo is open.
I am trying to implement multi-character (subsequent character input) search for items to be selected on multiple subsequent key presses, (I believe it is not supported at the moment, which is another issue/feature request for me) probably using some kind of event to intercept the input, listen for another key press and maybe use a timer to differentiate between subsequent multicharacter search and another new search. I tried to use OnKeyDown but it is NOT invoked for alphanumeric characters, while selection combo box is open. It works while options combo is closed.
Also maybe another issue is, that the automatic selection of item starting with the letter pressed works only, while selection combo is open. When it is closed, but MudSelect still has focus and user presses alphanumeric characters, this limited first character only search feature also does not work. But it is another issue I guess.
Expected behavior
OnKeyDown is invoked even while MudSelect selection combo is open.
Bonus features:
- search function works while
MudSelecthas focus, but selection combo is closed. MudSelectprovides a way to customize search/select algorythm
Reproduction link
https://try.mudblazor.com/snippet/QEmykobPnqQaOoHj
Reproduction steps
- Click
MudSelectto open item selection combo. - Add
OnKeyDownevent handler to see when the event is invoked. - Press alphanumeric characters while combo is opened,
OnKeyDownevent is not invoked for alphanumeric characters (only for control characters).
Relevant log output
No response
Version (bug)
6.19.1
Version (working)
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Edge
On which operating systems are you experiencing the issue?
Windows
Pull Request
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project's Code of Conduct