@pdg/react-form 1.0.84 → 1.0.85
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 +7 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2797,10 +2797,13 @@ styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
|
|
|
2797
2797
|
/********************************************************************************************************************
|
|
2798
2798
|
* State - value
|
|
2799
2799
|
* ******************************************************************************************************************/
|
|
2800
|
-
var _c = React.useState(function () {
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2800
|
+
var _c = React.useState(function () { return getFinalValue(initValue || []); }), value = _c[0], setValue = _c[1];
|
|
2801
|
+
var _d = React.useState(function () { return new Set(getFinalValue(initValue || [])); }), valueSet = _d[0], setValueSet = _d[1];
|
|
2802
|
+
useFirstSkipEffect$1(function () {
|
|
2803
|
+
setValue(getFinalValue(initValue || []));
|
|
2804
|
+
setValueSet(new Set(getFinalValue(initValue || [])));
|
|
2805
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2806
|
+
}, [initValue]);
|
|
2804
2807
|
useFirstSkipEffect$1(function () {
|
|
2805
2808
|
if (error)
|
|
2806
2809
|
validate(value);
|