react-aria-modal
Advanced tools
Comparing version 2.2.0 to 2.2.1
# Changelog | ||
## 2.2.1 | ||
- Fix `this` bug. | ||
## 2.2.0 | ||
@@ -4,0 +8,0 @@ |
@@ -46,9 +46,10 @@ var React = require('react'); | ||
componentDidMount: function() { | ||
if (this.props.onEnter) { | ||
this.props.onEnter(); | ||
var props = this.props; | ||
if (props.onEnter) { | ||
props.onEnter(); | ||
} | ||
// Timeout to ensure this happens *after* focus has moved | ||
setTimeout(function() { | ||
if (this.props.applicationNode) { | ||
this.props.applicationNode.setAttribute('aria-hidden', 'true'); | ||
if (props.applicationNode) { | ||
props.applicationNode.setAttribute('aria-hidden', 'true'); | ||
} | ||
@@ -55,0 +56,0 @@ }, 0); |
{ | ||
"name": "react-aria-modal", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A fully accessible and flexible React modal built according WAI-ARIA Authoring Practices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,2 +82,3 @@ # react-aria-modal | ||
initialFocus='#demo-one-deactivate' | ||
applicationNode={document.getElementById('my-application')} | ||
> | ||
@@ -84,0 +85,0 @@ <div className='modal-dialog'> |
39842
565
314