@getflip/swirl-components 0.118.1 → 0.118.2
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/components.json +1 -1
- package/dist/cjs/swirl-popover_2.cjs.entry.js +3 -4
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-popover/swirl-popover.js +2 -2
- package/dist/collection/components/swirl-popover-trigger/swirl-popover-trigger.js +1 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-popover-trigger2.js +1 -2
- package/dist/components/swirl-popover2.js +2 -2
- package/dist/esm/swirl-popover_2.entry.js +3 -4
- package/dist/swirl-components/p-f257bd02.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/swirl-components/p-20269998.entry.js +0 -1
package/components.json
CHANGED
|
@@ -105,7 +105,7 @@ const SwirlPopover = class {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
onWindowClick(event) {
|
|
108
|
-
if (!this.active) {
|
|
108
|
+
if (!this.active || this.closing) {
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
const target = event.target;
|
|
@@ -115,7 +115,7 @@ const SwirlPopover = class {
|
|
|
115
115
|
.some((el) => Boolean(el) && el instanceof Node
|
|
116
116
|
? this.el.contains(el)
|
|
117
117
|
: false);
|
|
118
|
-
const clickedTrigger = target === this.triggerEl;
|
|
118
|
+
const clickedTrigger = target === this.triggerEl || this.triggerEl.contains(target);
|
|
119
119
|
if (!clickedChild && !clickedShadowChild && !clickedTrigger) {
|
|
120
120
|
this.close();
|
|
121
121
|
}
|
|
@@ -271,8 +271,7 @@ const SwirlPopoverTrigger = class {
|
|
|
271
271
|
constructor(hostRef) {
|
|
272
272
|
index.registerInstance(this, hostRef);
|
|
273
273
|
this.popoverOpen = false;
|
|
274
|
-
this.onClick = (
|
|
275
|
-
event.stopPropagation();
|
|
274
|
+
this.onClick = () => {
|
|
276
275
|
const popoverEl = this.getPopoverEl();
|
|
277
276
|
if (!Boolean(popoverEl)) {
|
|
278
277
|
return;
|