@inappstory/slide-api 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16321,7 +16321,10 @@ class WidgetProducts extends WidgetBase {
|
|
|
16321
16321
|
}
|
|
16322
16322
|
const card = document.createElement("div");
|
|
16323
16323
|
card.classList.add("ias-products-card");
|
|
16324
|
-
card.onclick =
|
|
16324
|
+
card.onclick = e => {
|
|
16325
|
+
// prevent click in SDK (slide/story navigation)
|
|
16326
|
+
e.stopPropagation();
|
|
16327
|
+
e.preventDefault();
|
|
16325
16328
|
this._statEventWidgetCardClick(offer);
|
|
16326
16329
|
if (offer.url) {
|
|
16327
16330
|
this.sdkApi.openUrl(offer.url);
|