Socket
Socket
Sign inDemoInstall

react-aria-modal

Package Overview
Dependencies
13
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.12.2 to 2.12.3

4

CHANGELOG.md
# 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 @@

2

dist/react-aria-modal.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc