You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardexpand all lines: editor/src/components/canvas/canvas-strategies/strategies/flow-reparent-to-flow-strategy.spec.browser2.tsx
0 commit comments