x-ui-design 0.5.15 → 0.5.17
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 +0 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/lib/hooks/useForm.ts +0 -5
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -732,10 +732,6 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
|
|
|
732
732
|
const fieldWarnings = [];
|
|
733
733
|
await Promise.all([rules].flat(1).map(async rule => {
|
|
734
734
|
rule = typeof rule === 'function' ? rule(formInstance) : rule;
|
|
735
|
-
console.log({
|
|
736
|
-
rule: JSON.parse(JSON.stringify(rule)),
|
|
737
|
-
value
|
|
738
|
-
});
|
|
739
735
|
if (rule.required && (rule.validateBooleanFalse && !value || value === undefined || value === null || value === '' || Array.isArray(value) && !value.length)) {
|
|
740
736
|
fieldErrors.push(rule.message || 'This field is required');
|
|
741
737
|
}
|