Fix event propagation

This commit is contained in:
Cohee 2024-04-06 20:35:25 +03:00
parent 866f514d19
commit fcc8051d38
1 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ function printTagList(element, { tags = undefined, addTag = undefined, forEntity
const id = 'placeholder_' + uuidv4();
// Add click event
const showHiddenTags = (event) => {
const showHiddenTags = (_, event) => {
const elementKey = key ?? getTagKeyForEntityElement($element);
console.log(`Hidden tags shown for element ${elementKey}`);
@ -783,7 +783,7 @@ function appendTagToList(listElement, tag, { removable = false, selectable = fal
if (clickableAction) {
const filter = getFilterHelper($(listElement));
tagElement.on('click', (e) => clickableAction.bind(tagElement)(filter));
tagElement.on('click', (e) => clickableAction.bind(tagElement)(filter, e));
tagElement.addClass('clickable-action');
}