Open Markus0020 opened 1 year ago
4
On final code of the tutorial the following lines
main.sync( thumbnails ); main.mount(); thumbnails.mount();
should be changed to:
thumbnails.mount(); main.sync(thumbnails); main.mount();
Otherwise an error occurs: [SPLIDE] Cannot read properties of null (reading 'Elements') error @ splide.esm.js:882
The thumbail-carousel should be mounted first before the main slider can be synchronized with it.
https://splidejs.com/tutorials/thumbnail-carousel/
/
[SPLIDE] Cannot read properties of null (reading 'Elements')
Checks
Version
4
Description
On final code of the tutorial the following lines
main.sync( thumbnails ); main.mount(); thumbnails.mount();
should be changed to:
thumbnails.mount(); main.sync(thumbnails); main.mount();
Otherwise an error occurs: [SPLIDE] Cannot read properties of null (reading 'Elements') error @ splide.esm.js:882
The thumbail-carousel should be mounted first before the main slider can be synchronized with it.
Reproduction Link
https://splidejs.com/tutorials/thumbnail-carousel/
Steps to Reproduce
/
Expected Behaviour
[SPLIDE] Cannot read properties of null (reading 'Elements')