Tagify: Can't select dropdown option

Created on 9 Nov 2020  路  4Comments  路  Source: yairEO/tagify

Version: 3.21.0

tags

This just randomly stopped working. I didn't change any code.

Here's the code sandbox.

The tags are populated normally with add, but this code doesn't fire at all.

entityTags.on("dropdown:select", (e) => {
    console.log(e.detail);
});
Help wanted

All 4 comments

Remove this line from the dropdown item template:

 tagifySuggestionIdx="${tagData.tagifySuggestionIdx}"

I've made it so tagify adds this automatically now.

Why did you add it yourself?

I haven't done it. I copied the code from your examples, and it suddenly stopped working.

The code was always there and it worked, until today, without me changing anything.

Thank you so much for the quick reply, this fixed the issue, I have no idea why tho. :)

I've committed a fix (today) so that even if you wrote that attribute, tagify will remove it and add its own

Awesome! Thank you so much.

Was this page helpful?
0 / 5 - 0 ratings