Replies: 2 comments
-
I need the same, plus the ability to re-do the search every time the select is opened or the search is emptied. I already made #5986 before finding this, so I'll add a copy of that text here and close my discussion. |
Beta Was this translation helpful? Give feedback.
-
I want to use searchable Async Selects for a number of inputs. In them, an empty search input, both when first opening the select and emptying a previous search, should result in a search with no filter. I realise that I can set defaultOptions to get something like this, but it only makes an empty search on mount.
Especially the second part is very important in two cases:
I know that it is possible to re-trigger the defaultOptions search by changing the components key, but this feels like a very hacky way of handling it and still cannot reflect possible changes in the data source. A property like If a min length like #5832 proposes s introduced with a default of 1, it would also avoid the breaking change as setting it to 0 would already indicate that loads from searches are wanted. If done without an extra property, I took a brief look at the code and it looks simple enough to implement, so I'd happily contribute the changes myself. |
Beta Was this translation helpful? Give feedback.
-
Hello,
On our system we have many select fields causing many requests on the page when the page is opened. The selects are used as filters so most of them are not used on average. I couldn't find any documentation about loading the options only after clicking inside / start searching in the select.
I could only find a closed issue: #738
I can help create a PR if you think this is something you would like to support.
Kind regards,
Mark
Beta Was this translation helpful? Give feedback.
All reactions