Fix swiper=false bug

This commit is contained in:
2026-01-14 14:15:16 +01:00
parent db789a23f9
commit 75d64885b0
3 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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");
}
};

View File

@@ -29,3 +29,5 @@ cacheowanie ramek do indexedD
zapisywanie querySelectorów produktów??
rozmiary i wersje - dropdown
opcja zwracania HTML