#711 Fix excluded tag hiding the character block

This commit is contained in:
Cohee
2023-07-14 23:11:44 +03:00
parent 37de77b20d
commit 0f3908216a

View File

@@ -311,7 +311,7 @@ function appendTagToList(listElement, tag, { removable, selectable, action, isGe
}
if (tag.excluded) {
isGeneralList ? $(tagElement).addClass('excluded') : $(listElement).parent().parent().addClass('hiddenByTag');
isGeneralList ? $(tagElement).addClass('excluded') : $(listElement).closest('.character_select, .group_select').addClass('hiddenByTag');
}
if (selectable) {
@@ -329,7 +329,7 @@ function appendTagToList(listElement, tag, { removable, selectable, action, isGe
$(listElement).append(tagElement);
}
function onTagFilterClick(listElement, characterSelector) {
function onTagFilterClick(listElement, characterSelector) {
let excludeTag;
if ($(this).hasClass('selected')) {
$(this).removeClass('selected');