bugfix (#2237)
This commit is contained in:
@@ -2322,10 +2322,7 @@ if (window.globalObserverForDOMIncrement === undefined) {
|
|||||||
case "style": {
|
case "style": {
|
||||||
// TODO: need to confirm that elemnent is hidden previously
|
// TODO: need to confirm that elemnent is hidden previously
|
||||||
if (tagName === "body") continue;
|
if (tagName === "body") continue;
|
||||||
if (
|
if (getElementComputedStyle(node)?.display !== "none") {
|
||||||
(getElementComputedStyle(node)?.display !== "none") !==
|
|
||||||
"none"
|
|
||||||
) {
|
|
||||||
window.globalOneTimeIncrementElements.push({
|
window.globalOneTimeIncrementElements.push({
|
||||||
targetNode: node,
|
targetNode: node,
|
||||||
newNodes: [node],
|
newNodes: [node],
|
||||||
@@ -2351,10 +2348,7 @@ if (window.globalObserverForDOMIncrement === undefined) {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue;
|
continue;
|
||||||
if (
|
if (getElementComputedStyle(node)?.display !== "none") {
|
||||||
(getElementComputedStyle(node)?.display !== "none") !==
|
|
||||||
"none"
|
|
||||||
) {
|
|
||||||
window.globalOneTimeIncrementElements.push({
|
window.globalOneTimeIncrementElements.push({
|
||||||
targetNode: node,
|
targetNode: node,
|
||||||
newNodes: [node],
|
newNodes: [node],
|
||||||
|
|||||||
Reference in New Issue
Block a user