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.
- package/esm2020/lib/components/MaterialComponent.mjs +2 -1
- package/esm2020/lib/components/textfield/textfield.component.mjs +2 -7
- package/fesm2015/ngx-render-material-forms.js +2 -6
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +0 -6
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/textfield/textfield.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -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);
|