mirror of https://github.com/gorhill/uBlock.git
Keep reflecting search matches after applying changes
This commit is contained in:
parent
9808423845
commit
f6839f5a57
|
@ -98,6 +98,9 @@ const renderFilterLists = ( ) => {
|
|||
if ( dom.cl.has(listEntryPrevious, 'toRemove') ) {
|
||||
dom.cl.add(listEntry, 'toRemove');
|
||||
}
|
||||
if ( dom.cl.has(listEntryPrevious, 'searchMatch') ) {
|
||||
dom.cl.add(listEntry, 'searchMatch');
|
||||
}
|
||||
} else {
|
||||
dom.cl.toggle(listEntry, 'checked', listDetails.off !== true);
|
||||
}
|
||||
|
@ -384,6 +387,9 @@ const updateListNode = listNode => {
|
|||
dom.text(qs$(listNode, '.nodestats'),
|
||||
renderNodeStats(listLeaves.length, qsa$(listNode, '.listEntry[data-role="leaf"]').length)
|
||||
);
|
||||
dom.cl.toggle(listNode, 'searchMatch',
|
||||
qs$(listNode, ':scope > .listEntries > .listEntry.searchMatch') !== null
|
||||
);
|
||||
if ( listNode.dataset.parent === 'root' ) { return; }
|
||||
let usedFilterCount = 0;
|
||||
let totalFilterCount = 0;
|
||||
|
|
Loading…
Reference in New Issue