How to remove selection from Autocomplete (single selection)?

I need to remove a selected item from an autocomplete field (multiple = false).

How can it be implemented?

In the multiple selection configuration, is possible to remove all the selected items, not in the single one.


Thank you for you help.

try closeOnSelect => false

Thank you, @shastox.

The option closeOnSelect = false leaves the autocomplete opened but it don’t remove the selection.


maybe it will suit you :

It is only possible for multiple: true autocomplete. When on standalone AC page/popup you need to call:

// clear value
// force to update inputs HTML

Where ac - autocomplete instance

1 Like

Thank you @nolimits4web.