Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dinonondi opened this issue Jun 24, 2023 · 0 comments
Open

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

dinonondi opened this issue Jun 24, 2023 · 0 comments

Comments

@dinonondi
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant