x-ui-design 0.5.1 → 0.5.13

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 CHANGED
@@ -730,12 +730,6 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
730
730
  const rules = rulesRef.current[name] || [];
731
731
  const fieldErrors = [];
732
732
  const fieldWarnings = [];
733
- console.log({
734
- name,
735
- value,
736
- stepRef: stepRef.current,
737
- formRef: JSON.parse(JSON.stringify(formRef.current))
738
- });
739
733
  await Promise.all([rules].flat(1).map(async rule => {
740
734
  rule = typeof rule === 'function' ? rule(formInstance) : rule;
741
735
  if (rule.required && (rule.validateBooleanFalse && !value || value === undefined || value === null || value === '' || Array.isArray(value) && !value.length)) {
@@ -761,6 +755,7 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
761
755
  }
762
756
  }
763
757
  }));
758
+ console.log(fieldErrors);
764
759
  setErrors(prev => ({
765
760
  ...prev,
766
761
  [name]: fieldErrors