mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
fix unintentional global usage in tagsinput
This commit is contained in:
parent
b475ebdb2c
commit
4184e94219
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue