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

Uncaught TypeError when removing the last slide and using dynamicBullets #6422

Closed
5 of 6 tasks
dd-jonas opened this issue Feb 21, 2023 · 0 comments
Closed
5 of 6 tasks
Labels

Comments

@dd-jonas
Copy link

dd-jonas commented Feb 21, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/react-ts-2ygn8g?file=App.tsx

Bug description

I am using Swiper with a dynamic list of slides that can be removed when clicking a button. When using pagination with dynamic bullets, deleting the last slide of a page results in an error:

Error in /turbo_modules/[email protected]/modules/pagination/pagination.js (160:36)
Cannot read properties of undefined (reading 'classList')

This happens since 9.0.0 and still occurs on 9.0.5.

Expected Behavior

No error is thrown

Actual Behavior

No response

Swiper version

9.0.5

Platform/Target and Browser Versions

Chrome

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