[Help] How to limit dropdown search results only to enabled items? #1682
-
Help WantedIn a search selection dropdown like this: if some items in the menu are disabled, they will be anyway included in the user's search result (if matching). Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As far as I know, there's no option and callback to achieve this. But, when you start typing to search, the special class name
Here's fiddle (https://jsfiddle.net/ko2in/ur2awmdt/8/). Try to type 'A' and you'll only see one active item. |
Beta Was this translation helpful? Give feedback.
-
Perfect! Thanks |
Beta Was this translation helpful? Give feedback.
As far as I know, there's no option and callback to achieve this. But, when you start typing to search, the special class name
filtered
will be added to the text container. You can use this class to hide the disabled item from your menu.Here's fiddle (https://jsfiddle.net/ko2in/ur2awmdt/8/). Try to type 'A' and you'll only see one active item.