TarekRaafat / autoComplete.js

Simple autocomplete pure vanilla Javascript library.
https://tarekraafat.github.io/autoComplete.js
Apache License 2.0
3.93k stars 236 forks source link

Destroy autocomplete once initialized #358

Open MuhammadTahseenurRehman opened 2 years ago

MuhammadTahseenurRehman commented 2 years ago

I am inserting selected city areas in autocomplete but when user changed the city then I am facing a problem that I cannot remove the areas of previously selected city and it is creating problem for me. is there any way that I can destroy autocomplete when user changed its city and then I can put areas of the selected city again?

SO it is the problem for all autoComplete users that they cannot destroy list once created.

REDAL commented 2 years ago

@MuhammadTahseenurRehman do you mean, when the user select a city, the suggestions list does not disappear ?