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

Initiating empty swiper throws an exception #5172

Closed
6 tasks done
istaiti opened this issue Nov 8, 2021 · 0 comments
Closed
6 tasks done

Initiating empty swiper throws an exception #5172

istaiti opened this issue Nov 8, 2021 · 0 comments

Comments

@istaiti
Copy link
Contributor

istaiti commented Nov 8, 2021

Check that this is really a bug

  • I confirm

Reproduction link

I'll add a coverage test

Bug description

up till version 7.0.9, we could init an empty swiper, and later-on add slides
(very helpful in lazy load cases were slides take ages to load)

Expected Behavior

to be able to init an empty swiper

Actual Behavior

console shows a thrown exception, and the init function breaks

swiper error

Swiper version

33c411e

Platform/Target and Browser Versions

chrome:latest

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

No branches or pull requests

2 participants