fixup 8a1908b7: don't protect disabled elements
This commit is contained in:
parent
46df47bf31
commit
24c60b7e8a
|
@ -344,8 +344,9 @@ function initDocRootObserver() {
|
|||
return;
|
||||
}
|
||||
const list = [];
|
||||
for (const el of styleElements.values()) {
|
||||
if (el.previousElementSibling !== expectedPrevSibling) {
|
||||
for (const [id, el] of styleElements.entries()) {
|
||||
if (!disabledElements.has(parseInt(id.substr(ID_PREFIX.length))) &&
|
||||
el.previousElementSibling !== expectedPrevSibling) {
|
||||
list.push({el, before: expectedPrevSibling.nextSibling});
|
||||
}
|
||||
expectedPrevSibling = el;
|
||||
|
|
Loading…
Reference in New Issue
Block a user