@react-aria/searchfield
Advanced tools
Comparing version 3.0.0-nightly-0ddbe6f95-241021 to 3.0.0-nightly-101d0772b-250111
@@ -44,3 +44,5 @@ var $8e80a08ea739bb00$exports = require("./intlStrings.main.js"); | ||
if (key === 'Escape') { | ||
if (state.value === '') e.continuePropagation(); | ||
// Also check the inputRef value for the case where the value was set directly on the input element instead of going through | ||
// the hook | ||
if (state.value === '' && (!inputRef.current || inputRef.current.value === '')) e.continuePropagation(); | ||
else { | ||
@@ -47,0 +49,0 @@ state.setValue(''); |
@@ -38,3 +38,5 @@ import $kTEqN$intlStringsmodulejs from "./intlStrings.module.js"; | ||
if (key === 'Escape') { | ||
if (state.value === '') e.continuePropagation(); | ||
// Also check the inputRef value for the case where the value was set directly on the input element instead of going through | ||
// the hook | ||
if (state.value === '' && (!inputRef.current || inputRef.current.value === '')) e.continuePropagation(); | ||
else { | ||
@@ -41,0 +43,0 @@ state.setValue(''); |
{ | ||
"name": "@react-aria/searchfield", | ||
"version": "3.0.0-nightly-0ddbe6f95-241021", | ||
"version": "3.0.0-nightly-101d0772b-250111", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,18 +25,17 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/i18n": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/textfield": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/utils": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-stately/searchfield": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-types/button": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-types/searchfield": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-types/shared": "^3.0.0-nightly-0ddbe6f95-241021", | ||
"@react-aria/i18n": "3.0.0-nightly-101d0772b-250111", | ||
"@react-aria/textfield": "3.0.0-nightly-101d0772b-250111", | ||
"@react-aria/utils": "3.0.0-nightly-101d0772b-250111", | ||
"@react-stately/searchfield": "3.0.0-nightly-101d0772b-250111", | ||
"@react-types/button": "3.0.0-nightly-101d0772b-250111", | ||
"@react-types/searchfield": "3.0.0-nightly-101d0772b-250111", | ||
"@react-types/shared": "3.0.0-nightly-101d0772b-250111", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"stableVersion": "3.7.10" | ||
} | ||
} |
@@ -76,3 +76,5 @@ /* | ||
if (key === 'Escape') { | ||
if (state.value === '') { | ||
// Also check the inputRef value for the case where the value was set directly on the input element instead of going through | ||
// the hook | ||
if (state.value === '' && (!inputRef.current || inputRef.current.value === '')) { | ||
e.continuePropagation(); | ||
@@ -79,0 +81,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88736
1206
+ Added@internationalized/date@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@internationalized/message@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@internationalized/number@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@internationalized/string@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/focus@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/form@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/i18n@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/interactions@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/label@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/ssr@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/textfield@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-aria/utils@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-stately/form@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-stately/searchfield@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-stately/utils@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/button@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/searchfield@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/shared@3.0.0-nightly-101d0772b-250111(transitive)
+ Added@react-types/textfield@3.0.0-nightly-101d0772b-250111(transitive)
- Removed@internationalized/date@3.7.0(transitive)
- Removed@internationalized/message@3.1.6(transitive)
- Removed@internationalized/number@3.6.0(transitive)
- Removed@internationalized/string@3.2.5(transitive)
- Removed@react-aria/focus@3.19.1(transitive)
- Removed@react-aria/form@3.0.12(transitive)
- Removed@react-aria/i18n@3.12.5(transitive)
- Removed@react-aria/interactions@3.23.0(transitive)
- Removed@react-aria/label@3.7.14(transitive)
- Removed@react-aria/ssr@3.9.7(transitive)
- Removed@react-aria/textfield@3.16.0(transitive)
- Removed@react-aria/utils@3.27.0(transitive)
- Removed@react-stately/form@3.1.1(transitive)
- Removed@react-stately/searchfield@3.5.9(transitive)
- Removed@react-stately/utils@3.10.5(transitive)
- Removed@react-types/button@3.10.2(transitive)
- Removed@react-types/searchfield@3.5.11(transitive)
- Removed@react-types/shared@3.27.0(transitive)
- Removed@react-types/textfield@3.11.0(transitive)
Updated@react-stately/searchfield@3.0.0-nightly-101d0772b-250111
Updated@react-types/searchfield@3.0.0-nightly-101d0772b-250111