intelicoreact 1.0.15 → 1.0.17

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,7 +407,6 @@ function InputMask2() {
407
407
  }
408
408
 
409
409
  setValue(value);
410
- onChangeProp(value);
411
410
 
412
411
  if (blinkErrors) {
413
412
  setTimeout(function () {
@@ -520,7 +519,7 @@ function InputMask2() {
520
519
  setMaskRendered(true);
521
520
  }, [maskPattern]);
522
521
  (0, _react.useEffect)(function () {
523
- if (isMaskRendered && !isInitValue || value !== getInputValue() && value !== '') {
522
+ if (isMaskRendered && !isInitValue || isInitValue && ![getInputValue(), getClearInnerValueAsString()].includes(value) && value !== '') {
524
523
  setValue(value);
525
524
  setIsInitValue(true);
526
525
  }
@@ -533,7 +532,7 @@ function InputMask2() {
533
532
  }, [isFocusedDefault, isMaskRendered]); // OnChange Observer
534
533
 
535
534
  (0, _react.useEffect)(function () {
536
- if (isMaskRendered && isInitValue && value) {
535
+ if (isMaskRendered && isInitValue) {
537
536
  var _prevValueRef$current, _prevValueRef$current2;
538
537
 
539
538
  setError(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [