You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use swiper in a CMS where the slide can get updated from the markup. But if I run swiper.update() afterwards, the aria-label will not be added. But I use this value to go to the slide if a user clicks on the content element on the content tree (which is outside of the preview frame).
In the CodePen link you'll see, if you remove the aria-labels and click on swiper.update(), the labels will not get added again.
Check that this is really a bug
Reproduction link
https://codepen.io/jonnitto/pen/MWNeowV/888093ea5782303c4e5c4abd87fb6eeb
Bug description
I use swiper in a CMS where the slide can get updated from the markup. But if I run
swiper.update()
afterwards, thearia-label
will not be added. But I use this value to go to the slide if a user clicks on the content element on the content tree (which is outside of the preview frame).In the CodePen link you'll see, if you remove the aria-labels and click on swiper.update(), the labels will not get added again.
I also added a workaround as an example:
Expected Behavior
The
aria-label
will get added againActual Behavior
The
aria-label
is missingSwiper version
11.1.14
Platform/Target and Browser Versions
macOS 15.0.1, in every Browser (Chrome, Safari, etc.) always the newest version
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: