-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow reparenting of components without style prop support (#6616)
**Problem:** Components without style prop support are not allowed to be reparented. **Fix:** - Remove the condition which disallows reparenting when the target does not honours position style props. - Fix condition in absolute reparenting that honouring style props is necessary for absolute reparent - Fix exception in grid rearrange animation when the selector does not find an element - Added test **Problems to solve:** This PR is a technical PR to support reparenting, but the experience is quite bad: 1. Moving of these components is not allowed, so we show the notpermitted cursor until you stay in the original parent (so most users would probably give up before actually trying to reparent) 2. Reparent to flow is allowed, but that doesn't render the element (only a blue line between siblings, if there are siblings), and does not even render an outline (which is rendered inside the original 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
6 changed files
with
286 additions
and
32 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
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
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.