@csmart/ngc-smart-victim 1.14.12 → 1.14.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -674,6 +674,9 @@ class PhoneMaskDirective {
674
674
  newVal = newVal.substring(0, 10);
675
675
  newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
676
676
  }
677
+ if (!newVal) {
678
+ newVal = null;
679
+ }
677
680
  this.ngControl.valueAccessor.writeValue(newVal);
678
681
  console.log('newVal');
679
682
  console.log(newVal);