Skip to content

Next.js Elements being in components breaks column render #92

@dinonondi

Description

@dinonondi

Hello,

I'm using prismic, and I'm rendering Slices.
Unfortunately, the code renders the whole slice zone as one big div rather than dividing it.

<Masonry
    breakpointCols={2}
    className='my-masonry-grid'
    columnClassName='home-layout'>
<div className='home-layout'>test</div>
        <div className='home-layout'>test sf</div>
        <div className='home-layout'></div>
        <div className='home-layout'>test sf</div>
        <div className='home-layout'>test sf</div>
        <div className='home-layout'></div>
      <SliceZone slices={page.data.slices} components={components} />
      </Masonry>

The first divs which are directly inside are rendering correctly, but the other ones aren't.
Inside each slice there is a wrapping home-layout div.

Screenshot 2023-06-24 at 16 22 37

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