Setting virtual.enabled: false
removes all slides instead of showing them normally
#7977
Open
5 of 6 tasks
Labels
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/devbox/swiper-react-virtual-slides-forked-rgqhyf
Bug description
When I disable the virtual slides feature by setting
virtual: { enabled: false }
, all the slides disappear from Swiper. I expected that disabling virtual mode would just make Swiper show all the regular (non-virtual) slides, but instead, everything gets removed from the DOM.Expected Behavior
Disabling virtual mode should just switch back to showing all the slides normally, without removing them from the DOM.
Actual Behavior
All the slides get removed when
virtual.enabled
is set to false.Swiper version
11.2.6
Platform/Target and Browser Versions
Arch Linux (Chrome 136)
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: