🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@rc-component/form

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/form - npm Package Compare versions

Comparing version
1.7.0
to
1.7.1
+5
-2
es/Field.js

@@ -298,3 +298,4 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

triggerName,
validateOnly = false
validateOnly = false,
delayFrame: showDelayFrame
} = options || {};

@@ -315,3 +316,5 @@

// since developer may `useWatch` value in the rules.
await delayFrame();
if (showDelayFrame) {
await delayFrame();
}

@@ -318,0 +321,0 @@ // Start validate

@@ -613,3 +613,6 @@ import { merge } from "@rc-component/util/es/utils/set";

if (childrenFields.length) {
this.validateFields(childrenFields);
this.validateFields(childrenFields, {
// Delay to avoid `useWatch` dynamic adjust rules that deps not get latest one
delayFrame: true
});
}

@@ -616,0 +619,0 @@ this.notifyObservers(prevStore, childrenFields, {

@@ -118,2 +118,3 @@ import type { ReactElement } from 'react';

validateMessages?: ValidateMessages;
delayFrame?: boolean;
}

@@ -120,0 +121,0 @@ export type InternalValidateFields<Values = any> = {

@@ -307,3 +307,4 @@ "use strict";

triggerName,
validateOnly = false
validateOnly = false,
delayFrame: showDelayFrame
} = options || {};

@@ -324,3 +325,5 @@

// since developer may `useWatch` value in the rules.
await (0, _delayUtil.default)();
if (showDelayFrame) {
await (0, _delayUtil.default)();
}

@@ -327,0 +330,0 @@ // Start validate

@@ -622,3 +622,6 @@ "use strict";

if (childrenFields.length) {
this.validateFields(childrenFields);
this.validateFields(childrenFields, {
// Delay to avoid `useWatch` dynamic adjust rules that deps not get latest one
delayFrame: true
});
}

@@ -625,0 +628,0 @@ this.notifyObservers(prevStore, childrenFields, {

@@ -118,2 +118,3 @@ import type { ReactElement } from 'react';

validateMessages?: ValidateMessages;
delayFrame?: boolean;
}

@@ -120,0 +121,0 @@ export type InternalValidateFields<Values = any> = {

{
"name": "@rc-component/form",
"version": "1.7.0",
"version": "1.7.1",
"description": "React Form Component",

@@ -5,0 +5,0 @@ "typings": "es/index.d.ts",