Search inside dropdown menu has lot of issues #9005
-
Describe the bug Codepen/jsFiddle/Codesandbox (required) Additional context What is the best way to implement a search inside dropdown menu for filtering options ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
you are doing some custom stuff with the components so don't expect it to work ootb without doing some workarounds. I suggest you look more into qselect examples from the docs along with its api. ie. using one of the examples from the docs and your data https://codepen.io/metalsadman/pen/eYgbMVV?editors=1010 |
Beta Was this translation helpful? Give feedback.
-
Hi @metalsadman even though the weird issues are solved (Thank you) I noticed that there is still issues in your demo:
I solved those issues and here is the working example -> Codepen Link |
Beta Was this translation helpful? Give feedback.
Hi @metalsadman even though the weird issues are solved (Thank you) I noticed that there is still issues in your demo:
If you search for an option that doesn't exists (e.g. asdasdsads) the options are not filtered.
If you search for an existing option e.g.
Cambridge
and then you close the modal and open it again, the filtered items are not showing.If you select an option from the dropdown -> close the popup -> open it again the selected item is not showing because it's covered by the search input.
I solved those issues and here is the working example -> Codepen Link