comand-component-library 3.3.60 → 3.3.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -1955,7 +1955,11 @@ const Il = {
1955
1955
  this.allowOpenFancyBox && Mt({ fancyBoxGallery: this.items, defaultGalleryIndex: e }), this.emitCurrentItemId(e);
1956
1956
  },
1957
1957
  emitCurrentItemId(e) {
1958
- this.$emit("click", this.items[e].image.id);
1958
+ if (this.contentType === "image") {
1959
+ this.$emit("click", this.items[e].image.id);
1960
+ return;
1961
+ }
1962
+ this.$emit("click", this.items[e].id);
1959
1963
  },
1960
1964
  executeLink(e, i) {
1961
1965
  this.executeOnClick === "emit" ? (i.preventDefault(), this.emitCurrentItemId(e)) : this.executeOnClick === "fancybox" && (i.preventDefault(), this.showFancyBox(e));