intelicoreact 1.0.14 → 1.0.16
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.
|
@@ -407,6 +407,7 @@ function InputMask2() {
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
setValue(value);
|
|
410
|
+
onChangeProp(value);
|
|
410
411
|
|
|
411
412
|
if (blinkErrors) {
|
|
412
413
|
setTimeout(function () {
|
|
@@ -540,8 +541,9 @@ function InputMask2() {
|
|
|
540
541
|
if (returnMaskedValue) values.reverse();
|
|
541
542
|
|
|
542
543
|
if ((prevValueRef === null || prevValueRef === void 0 ? void 0 : (_prevValueRef$current = prevValueRef.current) === null || _prevValueRef$current === void 0 ? void 0 : _prevValueRef$current[0]) !== values[0] && (prevValueRef === null || prevValueRef === void 0 ? void 0 : (_prevValueRef$current2 = prevValueRef.current) === null || _prevValueRef$current2 === void 0 ? void 0 : _prevValueRef$current2[1]) !== values[1] && value !== values[0] && value !== values[1]) {
|
|
543
|
-
prevValueRef.current = values;
|
|
544
|
-
|
|
544
|
+
prevValueRef.current = values; //TODO: Запрещаю возвращать пустое значение в ончендж, если сверху пробросить значение то инпут сформирует маску и потом вернет пришедшее значение а следом пустое незнаю почему, ручное удаление вэлью работает онченджем выше
|
|
545
|
+
|
|
546
|
+
if (values[0] !== '') onChangeProp.apply(void 0, values);
|
|
545
547
|
}
|
|
546
548
|
}
|
|
547
549
|
}, [innerValue, isMaskRendered, isInitValue, value]); // Blink Error
|