@react-aria/form
Advanced tools
Comparing version 3.0.0-nightly-10a43de88-241127 to 3.0.0-nightly-1286a652e-250116
@@ -28,3 +28,3 @@ var $j3sn1$reactariainteractions = require("@react-aria/interactions"); | ||
(0, $j3sn1$reactariautils.useLayoutEffect)(()=>{ | ||
if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current)) { | ||
if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current) && !ref.current.disabled) { | ||
let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : ''; | ||
@@ -31,0 +31,0 @@ ref.current.setCustomValidity(errorMessage); |
@@ -22,3 +22,3 @@ import {setInteractionModality as $9Gacy$setInteractionModality} from "@react-aria/interactions"; | ||
(0, $9Gacy$useLayoutEffect)(()=>{ | ||
if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current)) { | ||
if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current) && !ref.current.disabled) { | ||
let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : ''; | ||
@@ -25,0 +25,0 @@ ref.current.setCustomValidity(errorMessage); |
{ | ||
"name": "@react-aria/form", | ||
"version": "3.0.0-nightly-10a43de88-241127", | ||
"version": "3.0.0-nightly-1286a652e-250116", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,15 +25,15 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/interactions": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-aria/utils": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-stately/form": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-types/shared": "^3.0.0-nightly-10a43de88-241127", | ||
"@react-aria/interactions": "3.0.0-nightly-1286a652e-250116", | ||
"@react-aria/utils": "3.0.0-nightly-1286a652e-250116", | ||
"@react-stately/form": "3.0.0-nightly-1286a652e-250116", | ||
"@react-types/shared": "3.0.0-nightly-1286a652e-250116", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
"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.0.11" | ||
} | ||
} |
@@ -30,3 +30,3 @@ /* | ||
useLayoutEffect(() => { | ||
if (validationBehavior === 'native' && ref?.current) { | ||
if (validationBehavior === 'native' && ref?.current && !ref.current.disabled) { | ||
let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : ''; | ||
@@ -33,0 +33,0 @@ ref.current.setCustomValidity(errorMessage); |
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
43426
7
+ Added@react-aria/interactions@3.0.0-nightly-1286a652e-250116(transitive)
+ Added@react-aria/ssr@3.0.0-nightly-1286a652e-250116(transitive)
+ Added@react-aria/utils@3.0.0-nightly-1286a652e-250116(transitive)
+ Added@react-stately/form@3.0.0-nightly-1286a652e-250116(transitive)
+ Added@react-stately/utils@3.0.0-nightly-1286a652e-250116(transitive)
+ Added@react-types/shared@3.0.0-nightly-1286a652e-250116(transitive)
- Removed@react-aria/interactions@3.23.0(transitive)
- Removed@react-aria/ssr@3.9.7(transitive)
- Removed@react-aria/utils@3.27.0(transitive)
- Removed@react-stately/form@3.1.1(transitive)
- Removed@react-stately/utils@3.10.5(transitive)
- Removed@react-types/shared@3.27.0(transitive)
Updated@react-aria/interactions@3.0.0-nightly-1286a652e-250116