From 4184e942190b6182451da624e394452fe1fcd4e2 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 9 Sep 2021 22:57:29 -0400 Subject: [PATCH] fix unintentional global usage in tagsinput --- assets/js/tagsinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/tagsinput.js b/assets/js/tagsinput.js index 1df125a7..8162bbfa 100644 --- a/assets/js/tagsinput.js +++ b/assets/js/tagsinput.js @@ -104,7 +104,7 @@ function setupTagsInput(tagBlock) { // Remove instead if the tag name starts with a minus if (name[0] === "-") { name = name.slice(1); // eslint-disable-line no-param-reassign - tagLink = $(`[data-tag-name="${escapeCss(name)}"]`, container); + const tagLink = $(`[data-tag-name="${escapeCss(name)}"]`, container); return removeTag(name, tagLink.parentNode); }