Files
hyperframes/packages
Miguel Ángel 37f99aa781 fix(core): skip flattenInnerRoot when host lacks data-composition-id
The previous fix (propagating comp-id to host) broke flex centering: CSS
like display:flex;align-items:center targets the host, but .label is a
grandchild (host > inner-root > label) so flex centering doesn't cascade.

Better approach: only apply flattenInnerRoot when compId is present on the
host. When compId is null, the old outerHTML path already preserved the
inner root with all its original attributes (including data-composition-id),
so flattenInnerRoot is unnecessary and harmful.

This preserves the original fix for James's bug (inner root classes lost
when host HAS compId and innerHTML strips the wrapper) while avoiding
regressions when the host lacks compId (30 existing regression tests).
2026-06-11 14:23:23 +00:00
..
2026-06-11 06:09:31 +00:00
2026-06-11 06:09:31 +00:00
2026-06-11 06:09:31 +00:00
2026-06-11 06:09:31 +00:00
2026-06-11 06:09:31 +00:00
2026-06-11 06:09:31 +00:00
2026-06-11 06:09:31 +00:00