Choices-js / Choices

A vanilla JS customisable select box/text input plugin ⚡️
https://choices-js.github.io/Choices/
MIT License
6.06k stars 598 forks source link

Issue when I click on an Item #1087

Open AlexPoinot opened 1 year ago

AlexPoinot commented 1 year ago

Hi,

I have a problem when I click on an Item in my dropdown. The only way to detect a click on a specific Item was to use the "highlightItem" event but when there are several Items selected it does not work as I would like because it returns all the active Items and not only the one I clicked on. Same when I click in the search bar, the event is also activated.

I don't know if this is a bug or if it's intentional, but I would like to have an event that detects the click on a specific Item in order to perform actions.

link to my example

Thanks