react-aria-modal
Advanced tools
Comparing version 2.12.1 to 2.12.2
# Changelog | ||
## 2.12.2 | ||
- Fix bug causing Escape to break the focus trap, without closing the modal, when you use `escapeExits={false}`. | ||
## 2.12.1 | ||
@@ -4,0 +8,0 @@ |
@@ -222,2 +222,3 @@ 'use strict'; | ||
} | ||
focusTrapOptions.escapeDeactivates = props.escapeExits; | ||
@@ -224,0 +225,0 @@ return React.createElement(FocusTrap, { |
{ | ||
"name": "react-aria-modal", | ||
"version": "2.12.1", | ||
"version": "2.12.2", | ||
"description": "A fully accessible and flexible React modal built according WAI-ARIA Authoring Practices", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-aria-modal.js", |
@@ -5,3 +5,3 @@ # react-aria-modal | ||
This module provides a "smart" minimally styled component to wrap you "dumb" fully styled component. It provides the following features, while giving you complete control of the content: | ||
This module provides a minimally styled "[container](https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0)" component to wrap your fully-styled "presentational" component. It provides the following features, while giving you complete control of the content: | ||
@@ -8,0 +8,0 @@ - Focus is trapped within the modal: Tab and Shift+Tab will cycle through the modal's focusable nodes |
@@ -43,3 +43,3 @@ const React = require('react'); | ||
} | ||
if (this.props.scrollDisabled) { | ||
@@ -216,2 +216,3 @@ noScroll.on(); | ||
} | ||
focusTrapOptions.escapeDeactivates = props.escapeExits; | ||
@@ -218,0 +219,0 @@ return React.createElement(FocusTrap, |
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
174153
413