salim-lachdhaf / searchable_dropdown

Simple and robust Dropdown with item search feature, making it possible to use an offline item list or filtering URL for easy customization.
MIT License
326 stars 316 forks source link

Filter is not working when entering single character #619

Closed Nandhini-GA closed 5 months ago

Nandhini-GA commented 5 months ago

Filter is not showing proper result when typing single character (need to enter 2 or more characters to start filtering) (Rarely working) https://github.com/salim-lachdhaf/searchable_dropdown/assets/152958312/4aca85d7-40cc-4594-937c-da5a4899dc8d

kvn-7 commented 5 months ago

This behavior is not a bug but rather intentional and follows a specific process when conducting a search.

When you search for something, it does the following:

It makes all the letters lowercase. Then, it checks if any of the options in the dropdown list contain the letters you typed. If they do, it shows those options.

For example, if you type "a," it will show you all the options that have the letter "a" in them.