mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
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') ) {
|
if ( dom.cl.has(listEntryPrevious, 'toRemove') ) {
|
||||||
dom.cl.add(listEntry, 'toRemove');
|
dom.cl.add(listEntry, 'toRemove');
|
||||||
}
|
}
|
||||||
|
if ( dom.cl.has(listEntryPrevious, 'searchMatch') ) {
|
||||||
|
dom.cl.add(listEntry, 'searchMatch');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dom.cl.toggle(listEntry, 'checked', listDetails.off !== true);
|
dom.cl.toggle(listEntry, 'checked', listDetails.off !== true);
|
||||||
}
|
}
|
||||||
@ -384,6 +387,9 @@ const updateListNode = listNode => {
|
|||||||
dom.text(qs$(listNode, '.nodestats'),
|
dom.text(qs$(listNode, '.nodestats'),
|
||||||
renderNodeStats(listLeaves.length, qsa$(listNode, '.listEntry[data-role="leaf"]').length)
|
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; }
|
if ( listNode.dataset.parent === 'root' ) { return; }
|
||||||
let usedFilterCount = 0;
|
let usedFilterCount = 0;
|
||||||
let totalFilterCount = 0;
|
let totalFilterCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user