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

Swiper react + nextjs + use client height bug #7889

Closed
5 of 6 tasks
lior-amsalem opened this issue Feb 12, 2025 · 1 comment
Closed
5 of 6 tasks

Swiper react + nextjs + use client height bug #7889

lior-amsalem opened this issue Feb 12, 2025 · 1 comment
Labels

Comments

@lior-amsalem
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://github.com/lior-amsalem/swiper-react-nextjs-bug-report

Bug description

Swiper react as suggested here:
https://swiperjs.com/react

with nextjs and with "use client" at the top results with the height calculation bug.

it looks like the calculation occurs again and again and the height is infinite ?

Image

try the link of this github to reproduce:

https://github.com/lior-amsalem/swiper-react-nextjs-bug-report

Solutions ?

  • try to trigger the swiper in different way in the client rather than 'use client' in nextjs?
  • any ideas?

Expected Behavior

height should not be so long and high

Actual Behavior

hight is very very long

Swiper version

"swiper": "^11.2.2"

Platform/Target and Browser Versions

chrome,macos,nextjs,use client

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@nolimits4web
Copy link
Owner

You need to specify height on Swiper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants