Skip to content

<Element creates unnecessary sublayer #720

@matart15

Description

@matart15

Describe the bug
Because <Element creates unnecessary sublayer It is impossible to change layout

To Reproduce
Steps to reproduce the behavior:

  1. create component using Element ( children in mind )
  2. in editor ui create that component with children
  3. view created html with chrome debugger
  4. try changing flex-row or flex-col

Expected behavior
not create sublayer between component and it's children

Screenshots
Screenshot 2025-01-01 at 22 35 20

Screenshot 2025-01-01 at 22 35 27

Additional context
I tried setting is="section" to is={ShadcnButton}, is={<>}, is={Container} none works

Your environment

Software Version(s)
craft.js
React
TypeScript
Browser
npm/Yarn
Operating System

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions