Skip to content

Commit e42de49

Browse files
authored
Grid rearrange strategy adds selected element to elementsToRerender (#6551)
**Problem:** Grid rearrange doesn't render the result of the rearrange during the interaction. **Fix:** Quick fix: It seems in some cases (remix? dragged element is component instance?) the moved element has to be in elementsToRerender to make sure it is rendered into its target position during the interaction. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Play mode
1 parent aa29342 commit e42de49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/src/components/canvas/canvas-strategies/strategies/grid-rearrange-move-strategy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function getCommandsAndPatchForGridRearrange(
163163

164164
return {
165165
commands: commands,
166-
elementsToRerender: [EP.parentPath(selectedElement)],
166+
elementsToRerender: [EP.parentPath(selectedElement), selectedElement],
167167
}
168168
}
169169

0 commit comments

Comments
 (0)