ngx-render-material-forms 1.0.7 → 1.0.9

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.
@@ -454,7 +454,6 @@ class MaterialTextfieldComponent extends MaterialComponent {
454
454
  constructor() {
455
455
  super(...arguments);
456
456
  this.inputType = 'text';
457
- this.emailCounter = 0;
458
457
  }
459
458
  ngAfterContentInit() {
460
459
  if (this.instance && this.control && this.instance.component.disabled) {
@@ -502,11 +501,6 @@ class MaterialTextfieldComponent extends MaterialComponent {
502
501
  //this.control.hasError(msg.context.validator)
503
502
  if (this.instance.type == 'phoneNumber' || this.instance.type == 'email') {
504
503
  this.controlHasError = true;
505
- if (this.emailCounter == 1) {
506
- let element = document.getElementsByClassName('show-invalid')[0];
507
- element.click();
508
- }
509
- this.emailCounter++;
510
504
  }
511
505
  else {
512
506
  this.controlHasError = this.control.hasError(msg.context.validator);