@react-aria/form
Advanced tools
Comparing version
@@ -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-e37ad74f5-241101", | ||
"version": "3.0.0-nightly-e4497fdb6-250110", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,15 +25,14 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/interactions": "^3.0.0-nightly-e37ad74f5-241101", | ||
"@react-aria/utils": "^3.0.0-nightly-e37ad74f5-241101", | ||
"@react-stately/form": "^3.0.0-nightly-e37ad74f5-241101", | ||
"@react-types/shared": "^3.0.0-nightly-e37ad74f5-241101", | ||
"@react-aria/interactions": "3.0.0-nightly-e4497fdb6-250110", | ||
"@react-aria/utils": "3.0.0-nightly-e4497fdb6-250110", | ||
"@react-stately/form": "3.0.0-nightly-e4497fdb6-250110", | ||
"@react-types/shared": "3.0.0-nightly-e4497fdb6-250110", | ||
"@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.0.10" | ||
} | ||
} |
@@ -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
43355
0.42%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated