gch1p / bootstrap-5-autocomplete

autocomplete/typeahead js plugin for bootstrap v5
104 stars 36 forks source link

Issue if an extension add an element between field and dropdownmenu #31

Open hguenot opened 2 months ago

hguenot commented 2 months ago

Helllo

I have an extension (F-Secure) that sometimes add an element between the field and the dropdown after Autocomplete initialization. image

Every time, in the code, this.field.nextSibling is used to get the drop down menu, it fails because it references this extension element... and the dropdown menu display is broken image

To fix this issue I opened a pull request (https://github.com/gch1p/bootstrap-5-autocomplete/pull/30). I just add a property to save the dropdown element in the Autocomplete class and used it instead of this.field.nextSibling

cjauvin commented 2 months ago

Hello, sorry for the delay, I will try to look at your issue and PR shortly!