Skip to content

Commit

Permalink
Stringify the element path passed to data-grid-path (#6660)
Browse files Browse the repository at this point in the history
**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
  • Loading branch information
ruggi authored and liady committed Dec 13, 2024
1 parent 2010de5 commit 46dafef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/src/components/canvas/controls/grid-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ const GridControl = React.memo<GridControlProps>(({ grid, controlsVisible }) =>
<div
key={gridKeyFromPath(gridContainerOrComponentPath)}
id={gridKeyFromPath(gridContainerOrComponentPath)}
data-grid-path={gridContainerOrComponentPath}
data-grid-path={EP.toString(gridContainerOrComponentPath)}
style={style}
>
{placeholders.map((cell) => {
Expand Down

0 comments on commit 46dafef

Please sign in to comment.