New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/form

Package Overview
Dependencies
Maintainers
2
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/form - npm Package Compare versions

Comparing version

to
3.0.0-nightly-e4497fdb6-250110

2

dist/useFormValidation.main.js

@@ -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