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

appending slides on init, shows the wrong slide or wrong realIndex. #3082

Closed
Alexnortung opened this issue May 27, 2019 · 2 comments
Closed

appending slides on init, shows the wrong slide or wrong realIndex. #3082

Alexnortung opened this issue May 27, 2019 · 2 comments
Labels

Comments

@Alexnortung
Copy link

@Alexnortung Alexnortung commented May 27, 2019

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Swiper Version: 8d0dd34

  • Platform/Target and Browser Versions: macOS Chrome

  • Live Link or JSFiddle/Codepen or website with isssue: link to pen

What you did

I created a swiper with loop set to true, and no slides in the html. Then made a loop that added the slides on init.

Expected Behavior

I expected that the swiper would then start at the first slide and then the slides would be appended after the first slide.

Actual Behavior

After appending the slides the swiper was showing the last slide. And the realIndex property of the swiper was set to 0 which was expected if the swiper didn't show the last slide.

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Nov 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 23, 2019
@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jan 22, 2020

This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.

@stale stale bot closed this Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.