[Search and Autocomplete] No 'no-selection' occuring when under the 'min-query-length'

Forge Component
(24)
Published on 2019-03-24 by Leonardo Fernandes
24 votes
Published on 2019-03-24 by Leonardo Fernandes

There seems to be a small bug with the usage of the 'min-query-lenght' extension where it prevents the 'no-selection' as well.


Reproduce:

  1. Create an autocomplete with the 'min-query-length' (3 chars) and 'no-selection' extensions
  2. Select a value from the autocomplete when testing
  3. Remove all text except for the first 2 letters
  4. This will not trigger 'no-selection'

However if you leave the first 3 or more characters when removing text, the 'no-selection' will trigger normally and as such will actually clear the selected data (as it should).


Regards,

Geoffrey van der Ven

Hi Geoffrey.

Thanks for reporting this issue. I will be working in this component soon, and I'll keep this in mind. I'll let you know when a fix is ready.