[Autocomplete] Search is not triggered when "clearing" the select
Hello, when clearing the select after a search it's not possible to get all the elements (as it is when the select is opened the first time).
This causes that, after a search, you are "locked" with the elements starting with the string you just typed.
The only way to get this is to set "minCharacters" to 0 but this isn't always desiderable. IMHO it should be that, when the select is cleared, the load is triggered again.
Thanks.
Hmm. The logic here - https://github.com/symfony/ux/blob/2.x/src/Autocomplete/assets/src/controller.ts#L192-L212 - looks like it SHOULD issue the query again if you empty input (and choices were previously loaded). Also, https://ux.symfony.com/autocomplete seems to be working as you mention. If I "clear" a query, it loads everything again. Unless the bad behavior is related to a "single" select only?
Isn't minCharacterLength zero by default since minCharactersValue is 3 by default?
Isn't minCharacterLength zero by default since minCharactersValue is 3 by default?
I think this is NOT true, unless I'm missing it. The docs say that 3 is default, but I think it's an "implicit" default: https://github.com/symfony/ux/blob/2.x/src/Autocomplete/assets/src/controller.ts#L211 if nothing is passed.
On https://ux.symfony.com/autocomplete I don't see a min-characters value being passed, which means minCharacterLength will be null.
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Friendly ping? Should this still be open? I will close if I don't hear anything.
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
Still not working (v2.19.3 ), the vale 'min_characters' => 3, is properly set.
Could you create a reproducer for this bug ?
The idea is to get the smallest repository possible in which the bug can be observed... ... so we can install & test it easily and see what is not working as expected and why.
Documentation: https://symfony.com/doc/current/contributing/code/reproducer.html
Thank you!
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Could I get an answer? If I do not hear anything I will assume this issue is resolved or abandoned. Please get back to me <3
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Friendly ping? Should this still be open? I will close if I don't hear anything.
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!