-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Problem:** We use grid-rearrange-move code after reparenting into a grid to position the element into the target cell. However, `reorder` mode of grid-rearrange-move is never activated, so we set explicit gridRow/gridColumn props even when unnecessary. **Fix:** - Run the grid rearrange move commands after the reparent commands - Add new optional parameter to `runGridRearrangeMove` called `newPathAfterReparent` so it knows about the new path (end can use it in the commands) - Make the code to decide which mode (rearrange or reorder) work even when the target is not originally in the new parent. **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
- Loading branch information
Showing
3 changed files
with
221 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.