x-ui-design 0.5.80 → 0.5.81
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/compile.sh +1 -0
- package/dist/index.esm.js +1 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/hooks/useForm.ts +2 -0
- package/package.json +1 -1
- package/src/app/page.tsx +21 -11
package/compile.sh
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -709,6 +709,7 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
|
|
|
709
709
|
}
|
|
710
710
|
function isFieldsTouched(nameList, allFieldsTouched = false) {
|
|
711
711
|
if (!nameList) {
|
|
712
|
+
console.info(touchedFieldsRef.current);
|
|
712
713
|
return touchedFieldsRef.current.size > 0;
|
|
713
714
|
}
|
|
714
715
|
return allFieldsTouched ? nameList.every(name => touchedFieldsRef.current.has(name)) : nameList.some(name => touchedFieldsRef.current.has(name));
|