@zag-js/remove-scroll
Advanced tools
Comparing version 0.56.0 to 0.56.1
@@ -29,4 +29,3 @@ "use strict"; | ||
function assignStyle(el, style) { | ||
if (!el) | ||
return; | ||
if (!el) return; | ||
const previousStyle = el.style.cssText; | ||
@@ -39,4 +38,3 @@ Object.assign(el.style, style); | ||
function setCSSProperty(el, property, value) { | ||
if (!el) | ||
return; | ||
if (!el) return; | ||
const previousValue = el.style.getPropertyValue(property); | ||
@@ -62,4 +60,3 @@ el.style.setProperty(property, value); | ||
const locked = body.hasAttribute(LOCK_CLASSNAME); | ||
if (locked) | ||
return; | ||
if (locked) return; | ||
body.setAttribute(LOCK_CLASSNAME, ""); | ||
@@ -66,0 +63,0 @@ const scrollbarWidth = win.innerWidth - documentElement.clientWidth; |
{ | ||
"name": "@zag-js/remove-scroll", | ||
"version": "0.56.0", | ||
"version": "0.56.1", | ||
"description": "JavaScript utility to remove scroll on body", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/dom-query": "0.56.0" | ||
"@zag-js/dom-query": "0.56.1" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20041
230
+ Added@zag-js/dom-query@0.56.1(transitive)
- Removed@zag-js/dom-query@0.56.0(transitive)
Updated@zag-js/dom-query@0.56.1