-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dropdown: search string with space causes select the first option #3764
Comments
I'm seeing this as well. This is a problem for me because I'm adding items to the dropdown list and this issue means I can't add items with spaces in them. |
This issue undoubtedly is caused by this: #3702 That PR should be named "force" selection not "allow". :D Suggestion that if search is enabled, this behavior is not enabled. And/or add an option to configure. But really, it shouldn't happen during search. |
Yes, at the very least this needs to be an option, not the default. |
By the way, temporary workaround that tested OK for us - downgrade to 0.87.3. Unless you need something in 0.88, of course. |
@ambroselittle Agree, it does behave like that in non-react semantic-ui - https://jsfiddle.net/Lqanh61p/1/ i guess I'll have some time to make a pr |
👍 --
Yeah, we want the fixes in 0.88 that stop message spam about |
Thanks for reporting and special thanks to @honzajerabek 🍾 |
Release in |
Bug Report
Steps
selection
andsearch
true) and options that are multiple words starting same first wordnote: I've tried number of combinations of
selectOnNavigation
,selectOnBlur
props as well as stopping propagation ononSearchChange
and other eventsExpected Result
Dropdown lets me to search any string I want
Actual Result
Dropdown cuts typing the search word on the spacebar press and selects the first available option from the search results
Version
0.88.0
Testcase
https://codesandbox.io/s/semantic-ui-react-9undx
The text was updated successfully, but these errors were encountered: