Remove z-index boosting from ancestors when placeholder is collapsed or replaced (issue #162).

This commit is contained in:
hackademix 2020-12-08 20:31:42 +01:00
parent b2f2261b32
commit b0f21ea2eb
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,10 @@ var PlaceHolder = (() => {
});
debug("Received response", ret);
if (!ret) return;
// bring back ancestors
for (let p = replacement; p = p.parentElement;) {
p.classList.remove("__ns__pop2top");
};
if (ret.collapse) {
for (let collapsing of (ret.collapse === "all" ? document.querySelectorAll(SELECTOR) : [replacement])) {
this.replacements.delete(collapsing);