@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.js CHANGED
@@ -16319,7 +16319,10 @@ class WidgetProducts extends WidgetBase {
16319
16319
  }
16320
16320
  const card = document.createElement("div");
16321
16321
  card.classList.add("ias-products-card");
16322
- card.onclick = () => {
16322
+ card.onclick = e => {
16323
+ // prevent click in SDK (slide/story navigation)
16324
+ e.stopPropagation();
16325
+ e.preventDefault();
16323
16326
  this._statEventWidgetCardClick(offer);
16324
16327
  if (offer.url) {
16325
16328
  this.sdkApi.openUrl(offer.url);