ngx-render-material-forms 1.3.6 → 1.3.7
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/textarea/textarea.component.mjs +3 -3
- package/esm2020/lib/components/textfield/textfield.component.mjs +3 -3
- package/fesm2015/ngx-render-material-forms.js +4 -4
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +4 -4
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
- /package/esm2020/{ngx-render-material-formsmjs → ngx-render-material-forms.js} +0 -0
|
@@ -513,8 +513,8 @@ class MaterialTextfieldComponent extends MaterialComponent {
|
|
|
513
513
|
this.controlHasError = this.control.hasError(msg.context.validator);
|
|
514
514
|
}
|
|
515
515
|
if (msg.context && this.controlHasError) {
|
|
516
|
-
if (this.instance && this.instance.parent && this.instance.parent.
|
|
517
|
-
if (this.instance.parent.
|
|
516
|
+
if (this.instance && this.instance.parent && this.instance.parent._data) {
|
|
517
|
+
if (this.instance.parent._data.submit) {
|
|
518
518
|
this.control.markAllAsTouched();
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -1063,8 +1063,8 @@ class MaterialTextareaComponent extends MaterialComponent {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
getErrorMessage() {
|
|
1065
1065
|
// Check if instance and necessary properties exist
|
|
1066
|
-
if (this.instance && this.instance.parent && this.instance.parent.
|
|
1067
|
-
if (this.instance.parent.
|
|
1066
|
+
if (this.instance && this.instance.parent && this.instance.parent._data) {
|
|
1067
|
+
if (this.instance.parent._data.submit) {
|
|
1068
1068
|
this.control.markAllAsTouched();
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|