New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fenderdigital/react-off-canvas

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fenderdigital/react-off-canvas - npm Package Compare versions

Comparing version

to
1.1.1

8

lib/OffCanvas.js

@@ -84,6 +84,2 @@ 'use strict';

if (isVisible !== prevIsVisible) this.toggleState();
if ((0, _dom2.default)()) {
var body = document.querySelector('html');
body.className = isVisible ? 'overflow-hidden' : '';
}
};

@@ -102,2 +98,6 @@

onCallback({ isVisible: isVisible });
if ((0, _dom2.default)()) {
var html = document.querySelector('html');
html.className = isVisible ? 'overflow-hidden' : '';
}
});

@@ -104,0 +104,0 @@ };

@@ -30,3 +30,3 @@ {

},
"version": "1.1.0",
"version": "1.1.1",
"dependencies": {

@@ -33,0 +33,0 @@ "@fenderdigital/dom": "^1.0.6"

@@ -15,6 +15,2 @@ import React from 'react';

if (isVisible !== prevIsVisible) this.toggleState();
if (isDomUsuable()) {
const body = document.querySelector('html');
body.className = isVisible ? 'overflow-hidden' : '';
}
}

@@ -64,2 +60,6 @@ getPlacement = placement => {

onCallback({ isVisible });
if (isDomUsuable()) {
const html = document.querySelector('html');
html.className = isVisible ? 'overflow-hidden' : '';
}
},

@@ -66,0 +66,0 @@ );