Socket
Socket
Sign inDemoInstall

@zag-js/remove-scroll

Package Overview
Dependencies
Maintainers
1
Versions
714
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/remove-scroll - npm Package Compare versions

Comparing version 0.56.0 to 0.56.1

9

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc