@zag-js/interact-outside 0.79.1 → 0.79.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/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -98,6 +98,7 @@ function trackInteractOutsideImpl(node, options) {
|
|
|
98
98
|
function isEventOutside(event) {
|
|
99
99
|
const target = domQuery.getEventTarget(event);
|
|
100
100
|
if (!domQuery.isHTMLElement(target)) return false;
|
|
101
|
+
if (!target.isConnected) return false;
|
|
101
102
|
if (domQuery.contains(node, target)) return false;
|
|
102
103
|
if (isEventPointWithin(node, event)) return false;
|
|
103
104
|
if (isEventWithinScrollbar(event, target)) return false;
|
package/dist/index.mjs
CHANGED
|
@@ -96,6 +96,7 @@ function trackInteractOutsideImpl(node, options) {
|
|
|
96
96
|
function isEventOutside(event) {
|
|
97
97
|
const target = getEventTarget(event);
|
|
98
98
|
if (!isHTMLElement(target)) return false;
|
|
99
|
+
if (!target.isConnected) return false;
|
|
99
100
|
if (contains(node, target)) return false;
|
|
100
101
|
if (isEventPointWithin(node, event)) return false;
|
|
101
102
|
if (isEventWithinScrollbar(event, target)) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/interact-outside",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.2",
|
|
4
4
|
"description": "Track interactions or focus outside an element",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@zag-js/dom-query": "0.79.
|
|
20
|
-
"@zag-js/dom-event": "0.79.
|
|
21
|
-
"@zag-js/utils": "0.79.
|
|
19
|
+
"@zag-js/dom-query": "0.79.2",
|
|
20
|
+
"@zag-js/dom-event": "0.79.2",
|
|
21
|
+
"@zag-js/utils": "0.79.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"clean-package": "2.2.0"
|