react-aria-modal
Advanced tools
Comparing version 2.12.2 to 2.12.3
# Changelog | ||
## 2.12.3 | ||
- Use `onMouseDown` instead of `onClick` to detect a tap on the underlay, which by default closes the modal. This fixes a bug where the modal would close if you click inside it then drag outside before releasing the mouse key. | ||
## 2.12.2 | ||
@@ -4,0 +8,0 @@ |
@@ -141,3 +141,3 @@ 'use strict'; | ||
if (props.underlayClickExits) { | ||
underlayProps.onClick = this.checkUnderlayClick; | ||
underlayProps.onMouseDown = this.checkUnderlayClick; | ||
} | ||
@@ -144,0 +144,0 @@ |
{ | ||
"name": "react-aria-modal", | ||
"version": "2.12.2", | ||
"version": "2.12.3", | ||
"description": "A fully accessible and flexible React modal built according WAI-ARIA Authoring Practices", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-aria-modal.js", |
@@ -130,3 +130,3 @@ const React = require('react'); | ||
if (props.underlayClickExits) { | ||
underlayProps.onClick = this.checkUnderlayClick; | ||
underlayProps.onMouseDown = this.checkUnderlayClick; | ||
} | ||
@@ -133,0 +133,0 @@ |
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
174400