From fcc8051d38238fc99c5080915c47dac3e52c10d1 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 6 Apr 2024 20:35:25 +0300 Subject: [PATCH] Fix event propagation --- public/scripts/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/tags.js b/public/scripts/tags.js index 5fc477b02..b1c40c020 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -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'); }