Commit f566f35
committed
Fix: Allow space character in Select input
Fixed issue where pressing the space key in Select input would not add a space character to the input field.
The root cause was that preventDefault() was always called when mode was not 'combobox', which prevented typing spaces even when the input was editable in showSearch mode.
Changes:
- Modified space key handling to only call preventDefault() when the input is not editable
- Input is considered editable when mode is 'combobox' or showSearch is true
- This allows users to type spaces in editable Select inputs while preventing default behavior (scroll/submit) in non-editable Selects
This fix allows users to type spaces in search terms within Select components with showSearch enabled.1 parent 8327910 commit f566f35
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
474 | | - | |
| 473 | + | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
0 commit comments