Fix swiper=false bug
This commit is contained in:
2
klasa.js
2
klasa.js
@@ -2608,7 +2608,7 @@ class IdmHotspot {
|
||||
);
|
||||
|
||||
// Opcje swipera
|
||||
if (typeof this?.options?.swiper === "boolean")
|
||||
if (this.options.swiper && typeof this?.options?.swiper === "boolean")
|
||||
this.options.swiper = this.getDefaultSwiperOptions();
|
||||
|
||||
// Wstawienie kontenera
|
||||
|
||||
@@ -29,4 +29,10 @@ IdmHotspot = class extends IdmHotspot {
|
||||
|
||||
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