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.

Example:

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.

autocomplete_close

maybe it will suit you : https://framework7.io/docs/smart-select.html

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

// clear value
ac.value=[]
// force to update inputs HTML
ac.updateValues()

Where ac - autocomplete instance

1 Like

Thank you @nolimits4web.