@react-aria/searchfield
Advanced tools
Comparing version 3.0.0-nightly-bebc9764a-241010 to 3.0.0-nightly-c53ab48ec-250115
@@ -44,4 +44,7 @@ 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 { | ||
e.preventDefault(); | ||
state.setValue(''); | ||
@@ -48,0 +51,0 @@ if (onClear) onClear(); |
@@ -38,4 +38,7 @@ 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 { | ||
e.preventDefault(); | ||
state.setValue(''); | ||
@@ -42,0 +45,0 @@ if (onClear) onClear(); |
{ | ||
"name": "@react-aria/searchfield", | ||
"version": "3.0.0-nightly-bebc9764a-241010", | ||
"version": "3.0.0-nightly-c53ab48ec-250115", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,18 +25,18 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/i18n": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-aria/textfield": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-aria/utils": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-stately/searchfield": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-types/button": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-types/searchfield": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-types/shared": "^3.0.0-nightly-bebc9764a-241010", | ||
"@react-aria/i18n": "3.0.0-nightly-c53ab48ec-250115", | ||
"@react-aria/textfield": "3.0.0-nightly-c53ab48ec-250115", | ||
"@react-aria/utils": "3.0.0-nightly-c53ab48ec-250115", | ||
"@react-stately/searchfield": "3.0.0-nightly-c53ab48ec-250115", | ||
"@react-types/button": "3.0.0-nightly-c53ab48ec-250115", | ||
"@react-types/searchfield": "3.0.0-nightly-c53ab48ec-250115", | ||
"@react-types/shared": "3.0.0-nightly-c53ab48ec-250115", | ||
"@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", | ||
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"stableVersion": "3.7.9" | ||
} | ||
} |
@@ -76,5 +76,8 @@ /* | ||
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(); | ||
} else { | ||
e.preventDefault(); | ||
state.setValue(''); | ||
@@ -81,0 +84,0 @@ if (onClear) { |
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
89035
1210
10
+ Added@internationalized/date@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@internationalized/message@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@internationalized/number@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@internationalized/string@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/focus@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/form@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/i18n@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/interactions@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/label@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/ssr@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/textfield@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-aria/utils@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-stately/form@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-stately/searchfield@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-stately/utils@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-types/button@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-types/searchfield@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-types/shared@3.0.0-nightly-c53ab48ec-250115(transitive)
+ Added@react-types/textfield@3.0.0-nightly-c53ab48ec-250115(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-c53ab48ec-250115
Updated@react-types/searchfield@3.0.0-nightly-c53ab48ec-250115