intelicoreact 1.1.60 → 1.1.61
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.
|
@@ -601,20 +601,22 @@ function InputMask2() {
|
|
|
601
601
|
|
|
602
602
|
(0, _react.useEffect)(function () {
|
|
603
603
|
if (isMaskRendered && isInitValue) {
|
|
604
|
-
var _prevValueRef$current, _prevValueRef$current2;
|
|
605
|
-
|
|
606
604
|
setError(false);
|
|
607
605
|
var values = [getClearInnerValueAsString(), getInputValue({
|
|
608
606
|
noLastTyppedCharIndexCheck: true
|
|
609
607
|
})];
|
|
610
608
|
if (returnMaskedValue) values.reverse();
|
|
611
|
-
|
|
612
|
-
|
|
609
|
+
onChangeProp.apply(void 0, values); //todo Этот функционал ломает логику - инпут начиначиет возвращать промежуточные онченджи с пустым вэлью, при правильной отрисовке форма видит пустое вэлью.
|
|
610
|
+
|
|
611
|
+
/*if (
|
|
612
|
+
prevValueRef?.current?.[0] !== values[0] &&
|
|
613
|
+
prevValueRef?.current?.[1] !== values[1] &&
|
|
614
|
+
value !== values[0] &&
|
|
615
|
+
value !== values[1]
|
|
616
|
+
) {
|
|
613
617
|
prevValueRef.current = values;
|
|
614
|
-
onChangeProp
|
|
615
|
-
}
|
|
616
|
-
onChangeProp.apply(void 0, values);
|
|
617
|
-
}
|
|
618
|
+
onChangeProp(...values);
|
|
619
|
+
}*/
|
|
618
620
|
}
|
|
619
621
|
}, [innerValue, isMaskRendered, isInitValue, value]); // Blink Error
|
|
620
622
|
|