fix unintentional global usage in tagsinput

This commit is contained in:
byte[] 2021-09-09 22:57:29 -04:00
parent b475ebdb2c
commit 4184e94219

View file

@ -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);
}