Skip to content

Commit 3af65db

Browse files
authored
Stringify the element path passed to data-grid-path (#6660)
**Problem:** `data-grid-path` is not stringified when used in the grid control's component, leading to a lovely `[object Object]` which functionally nerfs the dom walker. **Fix:** Fix that. Fixes #6659
1 parent d1c1e6e commit 3af65db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/src/components/canvas/controls/grid-controls.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ const GridControl = React.memo<GridControlProps>(({ grid, controlsVisible }) =>
925925
<div
926926
key={gridKeyFromPath(gridContainerOrComponentPath)}
927927
id={gridKeyFromPath(gridContainerOrComponentPath)}
928-
data-grid-path={gridContainerOrComponentPath}
928+
data-grid-path={EP.toString(gridContainerOrComponentPath)}
929929
style={style}
930930
>
931931
{placeholders.map((cell) => {

0 commit comments

Comments
 (0)