Fix tag selector glitch after removing last tag, again
Better fix than 4e1fbf9747
This commit is contained in:
parent
edfdbdec1c
commit
5f283a6b7f
1 changed files with 8 additions and 8 deletions
|
@ -329,14 +329,6 @@
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// If tag isn't in scope and is still selected,
|
||||
// deselect it
|
||||
if (!inScope && self.selection[name]) {
|
||||
labels[i].setAttribute('selected', false);
|
||||
delete self.selection[name];
|
||||
var doCommand = true;
|
||||
}
|
||||
}
|
||||
|
||||
// If not in search, hide
|
||||
|
@ -371,6 +363,14 @@
|
|||
empty = false;
|
||||
}
|
||||
|
||||
// If tag isn't in scope and is still selected, deselect it
|
||||
if (labels[i].getAttribute('hidden') == 'true' && self.selection[name]) {
|
||||
labels[i].setAttribute('selected', false);
|
||||
delete self.selection[name];
|
||||
var doCommand = true;
|
||||
}
|
||||
|
||||
|
||||
// Always show colored tags at top
|
||||
if (colorData) {
|
||||
labels[i].setAttribute('hidden', false);
|
||||
|
|
Loading…
Reference in a new issue