-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Selection] Match any part of the string #3424
Comments
Under Settings (tab), Additional Settings: http://semantic-ui.com/modules/dropdown.html#additional-settings fullTextSearch : Whether search selections should look for string match anywhere in string. $('.ui.dropdown').dropdown({ fullTextSearch: true }); Hope that helps. |
That works. Didn't see that in the docs. Thank you. :) |
fullTextSearch=true doesn't appear to do a substring match for the query-string in the items. instead, it appears to match in order occurrence of all characters of the query-string in the item with any other characters interspersed (example : query-string 'temp' will match 'mytestmatchpick' and 'mytemperature' ). Any idea how to restrict to a strict substing match behavior ? |
I can confirm @duapraveen problem, we really need a fix for this |
fullTextSearch=exact seems to do what i needed - looks for the query-string anywhere in the strings. http://semantic-ui.com/modules/dropdown.html#additional-settings |
Thanks @duapraveen for your response but that didn't work for me in search http://semantic-ui.com/modules/search.html Could you help in this ? I know it's out of this issue context but it's the same behavior in search, that's what got me here. |
Dropdown fullTextSearch=exact was only implemented for the text search, not the value search. The value term was using a fuzzy match even with fullTextSearch=exact.
Gracias kapo |
I am facing the same issue with react semantic ui. @duapraveen @kmd1970 Can you please help me with that. |
@Jayashree-panda if you are using semantic-ui react maybe this can help you Semantic-Org/Semantic-UI-React#3932 (comment) |
This is a feature request.
Currently, when you search in a dropdown it matches the string from the beginning only. You can't search for something in the middle of the string (LIKE% matches, %LIKE% doesn't). For example, if you want to search a dropdown of users and you type their last name but no results are found unless you type the first name first.
Example
http://semantic-ui.com/modules/dropdown.html
What happens
What's expected
Example of expected
jQuery's autocomplete does this and there is an example here: https://jqueryui.com/autocomplete/#combobox
The text was updated successfully, but these errors were encountered: