@zag-js/dom-query
Advanced tools
Comparing version
@@ -609,6 +609,7 @@ 'use strict'; | ||
var OVERFLOW_RE = /auto|scroll|overlay|hidden|clip/; | ||
var nonOverflowValues = /* @__PURE__ */ new Set(["inline", "contents"]); | ||
function isOverflowElement(el) { | ||
const win = getWindow(el); | ||
const { overflow, overflowX, overflowY, display } = win.getComputedStyle(el); | ||
return OVERFLOW_RE.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display); | ||
return OVERFLOW_RE.test(overflow + overflowY + overflowX) && !nonOverflowValues.has(display); | ||
} | ||
@@ -615,0 +616,0 @@ function isScrollable(el) { |
{ | ||
"name": "@zag-js/dom-query", | ||
"version": "1.17.4", | ||
"version": "1.18.0", | ||
"description": "The dom helper library for zag.js machines", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/types": "1.17.4" | ||
"@zag-js/types": "1.18.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
123426
0.1%2670
0.07%+ Added
- Removed
Updated