Browse Source

js/filters: Fix hidden tag/trait selection on tab switch

This code is a horrible piece of shit. I can't tell if I broke something
else with this change. Testing seems to suggest it's okay.

https://vndb.org/t2520.281
Yorhel 1 month ago
parent
commit
ababd07157
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      data/js/filter.js

+ 1
- 0
data/js/filter.js View File

@@ -481,6 +481,7 @@ function filFTagInput(name, label, type) {
481 481
       if(item.getAttribute('meta') == 'yes')
482 482
         alert('Can\'t use meta '+type+'s here!');
483 483
       else {
484
+        obj.parentNode.fil_val = null;
484 485
         addtag(byName(obj.parentNode, 'ul')[0], item.getAttribute('id'), item.firstChild.nodeValue, item.getAttribute('groupname'));
485 486
         selectField(obj);
486 487
       }

Loading…
Cancel
Save