intelicoreact 0.1.69 → 0.1.70
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.
|
@@ -123,7 +123,7 @@ function InputMask() {
|
|
|
123
123
|
isFocused = _useState6[0],
|
|
124
124
|
setFocused = _useState6[1];
|
|
125
125
|
|
|
126
|
-
var _useState7 = (0, _react.useState)(
|
|
126
|
+
var _useState7 = (0, _react.useState)(false),
|
|
127
127
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
128
128
|
isInitValue = _useState8[0],
|
|
129
129
|
setIsInitValue = _useState8[1]; // ERRORS MANAGEMENT FUNCTIONS | START //
|
|
@@ -654,6 +654,7 @@ function InputMask() {
|
|
|
654
654
|
|
|
655
655
|
key = e.key, keyCode = e.keyCode;
|
|
656
656
|
charObj = getCharByIndex(i); // Android Text Typing FIX
|
|
657
|
+
// eslint-disable-next-line eqeqeq
|
|
657
658
|
|
|
658
659
|
if (!(keyCode == _config.ANDROID_CHROME_TEXT_CODE)) {
|
|
659
660
|
_context2.next = 9;
|
|
@@ -1125,6 +1126,8 @@ function InputMask() {
|
|
|
1125
1126
|
++valueCharIndex;
|
|
1126
1127
|
});
|
|
1127
1128
|
}
|
|
1129
|
+
|
|
1130
|
+
setIsInitValue(true);
|
|
1128
1131
|
}, [isMaskRendered, value, isInitValue]); // Focus Observer
|
|
1129
1132
|
|
|
1130
1133
|
(0, _react.useEffect)(function () {
|