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

Lock class is missing from navigation after calling enable() #7009

Closed
5 of 6 tasks
kyrylo-soulandwolf opened this issue Sep 4, 2023 · 0 comments · May be fixed by abhishekbedi/framework7#1, Aarod23/nys-site#1, wierza/Team-project#148 or TaylorBundy/swiper#4

Comments

@kyrylo-soulandwolf
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codepen.io/kyrylo-soulandwolf/pen/RwEGxdp

Bug description

When the swiper is enabled dynamically by calling enable method, the lock class isn't getting added to navigation buttons and pagination, therefore they are visible even when there aren't enough slides for the swiper.

Expected Behavior

The lock class to be added to navigation items and pagination.

Actual Behavior

The lock class is missing.

Swiper version

10.2.0

Platform/Target and Browser Versions

All

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