x-ui-design 0.3.52 → 0.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/hooks/useForm.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -707,9 +707,9 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange) => {
|
|
|
707
707
|
const rules = rulesRef.current[name] || [];
|
|
708
708
|
const fieldErrors = [];
|
|
709
709
|
const fieldWarnings = [];
|
|
710
|
+
debugger;
|
|
710
711
|
await Promise.all([rules].flat(1).map(async rule => {
|
|
711
712
|
rule = typeof rule === 'function' ? rule(formInstance) : rule;
|
|
712
|
-
debugger;
|
|
713
713
|
if (rule.required && (rule.validateBooleanFalse && !value || value === undefined || value === null || value === '' || Array.isArray(value) && !value.length)) {
|
|
714
714
|
fieldErrors.push(rule.message || 'This field is required');
|
|
715
715
|
}
|