revdev-components 0.102.0 → 0.103.0
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/build/index.js +16 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4791,10 +4791,23 @@ function AppForm(_a) {
|
|
|
4791
4791
|
var _b = React.useState(false), valid = _b[0], setValid = _b[1];
|
|
4792
4792
|
var _c = useFormValues(), values = _c[0], setValues = _c[1];
|
|
4793
4793
|
React.useEffect(function () {
|
|
4794
|
+
if (debug) {
|
|
4795
|
+
console.info("%cform", CONSOLE_COLOR, "validation", "called");
|
|
4796
|
+
}
|
|
4794
4797
|
form
|
|
4795
|
-
.validateFields({ validateOnly: true })
|
|
4796
|
-
.then(function () {
|
|
4797
|
-
|
|
4798
|
+
.validateFields({ validateOnly: true, dirty: true })
|
|
4799
|
+
.then(function () {
|
|
4800
|
+
if (debug) {
|
|
4801
|
+
console.info("%cform", CONSOLE_COLOR, "validation", "valid");
|
|
4802
|
+
}
|
|
4803
|
+
setValid(true);
|
|
4804
|
+
})
|
|
4805
|
+
.catch(function () {
|
|
4806
|
+
if (debug) {
|
|
4807
|
+
console.info("%cform", CONSOLE_COLOR, "validation", "not valid");
|
|
4808
|
+
}
|
|
4809
|
+
setValid(false);
|
|
4810
|
+
});
|
|
4798
4811
|
}, [form, values]);
|
|
4799
4812
|
React.useEffect(function () {
|
|
4800
4813
|
if (debug) {
|