Skip to content

In loop mode, duplicate slides are not being updated when the contents of the original slides change #2629

@brandonce

Description

@brandonce

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Swiper Version: 4.2.6

  • Platform/Target and Browser Versions: All browsers, but tested on macOS, CHROME

  • Live Link or JSFiddle/Codepen or website with issue: https://jsfiddle.net/knankv59/2/

What you did

Swiper config is at the bottom of the Javascript window in the jsfiddle (loop mode, loopedSlides set to 3, slidesPerView set to 1)

Click the right navigation arrow twice to swipe forward to slide 2.
Click the button above the slideshow to change the content of slide 2, which now reads "New content!"
Click the right navigation arrow six more times, going to the end of the slides and looping back around to slide 2.

Expected Behavior

Slide 2's text should still say "New content!"

Actual Behavior

Slide 2's text is still just the original "2".

_
Is there any way to refresh specific duplicate slides automatically when their original slide's content changes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions