Socket
Socket
Sign inDemoInstall

react-aria-modal

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-aria-modal - npm Package Compare versions

Comparing version 2.12.0 to 2.12.1

4

CHANGELOG.md
# Changelog
## 2.12.1
- Fix bug that was blocking changes to the `scrollDisabled` prop *while the modal is open*.
## 2.12.0

@@ -4,0 +8,0 @@

17

dist/react-aria-modal.js

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

}
if (this.props.scrollDisabled) {
noScroll.on();
}
}

@@ -78,4 +74,17 @@ }, {

}
if (this.props.scrollDisabled) {
noScroll.on();
}
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
if (prevProps.scrollDisabled && !this.props.scrollDisabled) {
noScroll.off();
} else if (!prevProps.scrollDisabled && this.props.scrollDisabled) {
noScroll.on();
}
}
}, {
key: 'componentWillUnmount',

@@ -82,0 +91,0 @@ value: function componentWillUnmount() {

{
"name": "react-aria-modal",
"version": "2.12.0",
"version": "2.12.1",
"description": "A fully accessible and flexible React modal built according WAI-ARIA Authoring Practices",

@@ -5,0 +5,0 @@ "main": "dist/react-aria-modal.js",

@@ -24,6 +24,2 @@ const React = require('react');

}
if (this.props.scrollDisabled) {
noScroll.on();
}
}

@@ -48,4 +44,16 @@

}
if (this.props.scrollDisabled) {
noScroll.on();
}
}
componentDidUpdate(prevProps) {
if (prevProps.scrollDisabled && !this.props.scrollDisabled) {
noScroll.off();
} else if (!prevProps.scrollDisabled && this.props.scrollDisabled) {
noScroll.on();
}
}
componentWillUnmount() {

@@ -52,0 +60,0 @@ if (this.props.scrollDisabled) {

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