Skip to content

Commit af98a41

Browse files
authored
fix: update display from none (#4969)
Fixes #4963 Looks like accidentally wrong method was used.
1 parent 7a41a1e commit af98a41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/builder/app/canvas/shared/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { canvasApi } from "~/shared/canvas-api";
3939
import { $selectedInstance, $selectedPage } from "~/shared/awareness";
4040
import { findAllEditableInstanceSelector } from "~/shared/instance-utils";
4141
import type { InstanceSelector } from "~/shared/tree-utils";
42-
import { getVisibleElementsByInstanceSelector } from "~/shared/dom-utils";
42+
import { getAllElementsByInstanceSelector } from "~/shared/dom-utils";
4343
import { createComputedStyleDeclStore } from "~/builder/features/style-panel/shared/model";
4444

4545
const userSheet = createRegularStyleSheet({ name: "user-styles" });
@@ -641,7 +641,7 @@ const subscribeEphemeralStyle = () => {
641641

642642
// We need to apply the custom property to the selected element as well.
643643
// Otherwise, variables defined on it will not be visible on documentElement.
644-
const elements = getVisibleElementsByInstanceSelector(instanceSelector);
644+
const elements = getAllElementsByInstanceSelector(instanceSelector);
645645
for (const element of elements) {
646646
element.style.setProperty(
647647
getEphemeralProperty(styleDecl),

0 commit comments

Comments
 (0)