@pdg/react-form 1.0.41 → 1.0.43
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 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4151,12 +4151,12 @@ NumberFormatCustom.displayName = 'NumberFormatCustom';var FormNumberDefaultProps
|
|
|
4151
4151
|
var muiInputProps = useMemo(function () {
|
|
4152
4152
|
var inputProps = {
|
|
4153
4153
|
className: readOnly ? 'Mui-disabled' : undefined,
|
|
4154
|
-
allowLeadingZeros: allowLeadingZeros,
|
|
4155
|
-
allowNegative: allowNegative,
|
|
4154
|
+
allowLeadingZeros: !!allowLeadingZeros,
|
|
4155
|
+
allowNegative: !!allowNegative,
|
|
4156
4156
|
thousandSeparator: thousandSeparator,
|
|
4157
4157
|
prefix: prefix,
|
|
4158
4158
|
suffix: suffix,
|
|
4159
|
-
readOnly: readOnly,
|
|
4159
|
+
readOnly: !!readOnly,
|
|
4160
4160
|
tabIndex: readOnly ? -1 : tabIndex,
|
|
4161
4161
|
};
|
|
4162
4162
|
if (allowDecimal) {
|
|
@@ -10707,6 +10707,10 @@ styleInject(css_248z$4);var CustomDatePicker = React__default.forwardRef(functio
|
|
|
10707
10707
|
return initValue ? initValue : [null, null];
|
|
10708
10708
|
}, [initValue]))[0];
|
|
10709
10709
|
var _b = useState(null), activeMonthValue = _b[0], setActiveMonthValue = _b[1];
|
|
10710
|
+
// Effect ------------------------------------------------------------------------------------------------------------
|
|
10711
|
+
useEffect(function () {
|
|
10712
|
+
setActiveMonthValue(null);
|
|
10713
|
+
}, [selectType]);
|
|
10710
10714
|
//--------------------------------------------------------------------------------------------------------------------
|
|
10711
10715
|
var leftArrowOnClickRef = useRef();
|
|
10712
10716
|
var rightArrowOnClickRef = useRef();
|