Fix
This commit is contained in:
9
index.js
9
index.js
@@ -350,14 +350,9 @@ const init = async (items = [], options = {}, index = 0) => {
|
|||||||
|
|
||||||
const swiper = new Swiper(
|
const swiper = new Swiper(
|
||||||
gallery.querySelector('.advdominion-lg__container'),
|
gallery.querySelector('.advdominion-lg__container'),
|
||||||
Object.assign(
|
Object.assign({ init: false, initialSlide: index }, options.swiper, {
|
||||||
{
|
|
||||||
modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])],
|
modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])],
|
||||||
init: false,
|
}),
|
||||||
initialSlide: index,
|
|
||||||
},
|
|
||||||
options.swiper,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
swiper.on('init', function () {
|
swiper.on('init', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user