Fix swiper=false bug
This commit is contained in:
2
klasa.js
2
klasa.js
@@ -2608,7 +2608,7 @@ class IdmHotspot {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Opcje swipera
|
// Opcje swipera
|
||||||
if (typeof this?.options?.swiper === "boolean")
|
if (this.options.swiper && typeof this?.options?.swiper === "boolean")
|
||||||
this.options.swiper = this.getDefaultSwiperOptions();
|
this.options.swiper = this.getDefaultSwiperOptions();
|
||||||
|
|
||||||
// Wstawienie kontenera
|
// Wstawienie kontenera
|
||||||
|
|||||||
@@ -29,4 +29,10 @@ IdmHotspot = class extends IdmHotspot {
|
|||||||
|
|
||||||
return labelMarkup;
|
return labelMarkup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dodanie klasy do ramki rekomendacji
|
||||||
|
async afterInit() {
|
||||||
|
super.afterInit();
|
||||||
|
if (this.hotspotEl) this.hotspotEl.classList.add("--presentation");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user