@react-aria/interactions
Advanced tools
Comparing version 3.21.1 to 3.21.2
{ | ||
"name": "@react-aria/interactions", | ||
"version": "3.21.1", | ||
"version": "3.21.2", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/ssr": "^3.9.2", | ||
"@react-aria/utils": "^3.23.2", | ||
"@react-types/shared": "^3.22.1", | ||
"@react-aria/ssr": "^3.9.3", | ||
"@react-aria/utils": "^3.24.0", | ||
"@react-types/shared": "^3.23.0", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "de9f84a22583fc741c29b341d14cd35ef4cca161" | ||
"gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd" | ||
} |
@@ -20,2 +20,3 @@ /* | ||
import {FocusEvent, useCallback} from 'react'; | ||
import {getOwnerDocument} from '@react-aria/utils'; | ||
import {useSyntheticBlurEvent} from './utils'; | ||
@@ -65,3 +66,6 @@ | ||
// focus handler already moved focus somewhere else. | ||
if (e.target === e.currentTarget && document.activeElement === e.target) { | ||
const ownerDocument = getOwnerDocument(e.target); | ||
if (e.target === e.currentTarget && ownerDocument.activeElement === e.target) { | ||
if (onFocusProp) { | ||
@@ -68,0 +72,0 @@ onFocusProp(e); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
704694
110
8189
15
1
1
Updated@react-aria/ssr@^3.9.3
Updated@react-aria/utils@^3.24.0
Updated@react-types/shared@^3.23.0