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