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

bulletActiveClass Pagination prop breaks swiper v9.1.0 when adding multiple classes #6447

Closed
5 of 6 tasks
Armas0n opened this issue Mar 2, 2023 · 0 comments
Closed
5 of 6 tasks
Labels

Comments

@Armas0n
Copy link

Armas0n commented Mar 2, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/swiper-9-1-0-activebullet-bug?file=pages/index.js

Bug description

After upgrading to version 9 and adding multiple classes to bulletActiveClass option, swiper crashed with the following error:

Unhandled Runtime Error

InvalidCharacterError: DOMTokenList.remove: The token can not contain whitespace.
Call Stack
node_modules/swiper/modules/pagination/pagination.js (133:0)

If I switch back to Swiper v8.3.2 everything works fine and there are no crashes.

Expected Behavior

Not crashing when using multiple classes

Actual Behavior

Crash when using multiple classes

Swiper version

9.1.0

Platform/Target and Browser Versions

any modern browser

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant