zz-shopify-components 0.22.1-beta.0 → 0.22.1-beta.1
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/assets/zz-modal.js +4 -4
- package/package.json +1 -1
package/assets/zz-modal.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
const trackModalEvent = (eventType, modalId, additionalData = {}) => {
|
|
15
15
|
try {
|
|
16
16
|
const eventData = {
|
|
17
|
-
event:
|
|
17
|
+
event: eventType,
|
|
18
18
|
modal_action: eventType,
|
|
19
19
|
modal_id: modalId || 'unknown',
|
|
20
20
|
timestamp: new Date().toISOString(),
|
|
@@ -229,9 +229,9 @@
|
|
|
229
229
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
230
230
|
if (name === 'open' && oldValue !== newValue) {
|
|
231
231
|
if (this.hasAttribute('open')) {
|
|
232
|
-
this.
|
|
232
|
+
this._openInternal(false);
|
|
233
233
|
} else {
|
|
234
|
-
this.
|
|
234
|
+
this._closeInternal(false);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
|
|
462
462
|
// Analytics helper methods
|
|
463
463
|
_getTriggerSource() {
|
|
464
|
-
return this._lastTriggerSource || '
|
|
464
|
+
return this._lastTriggerSource || 'unknown';
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
_getCloseMethod() {
|