Skip to content

Commit

Permalink
fix(material): assign prefix to templateOptions instead of field
Browse files Browse the repository at this point in the history
fix #3074
  • Loading branch information
aitboudad committed Dec 4, 2021
1 parent 8e1ba9f commit ecca5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/material/form-field/src/field.type.ts
Expand Up @@ -30,8 +30,8 @@ export abstract class FieldType<F extends FormlyFieldConfig = FormlyFieldConfig>
ngAfterViewInit() {
if (this.matPrefix || this.matSuffix) {
setTimeout(() => {
defineHiddenProp(this.field, '_matprefix', this.matPrefix);
defineHiddenProp(this.field, '_matsuffix', this.matSuffix);
defineHiddenProp(this.to, '_matPrefix', this.matPrefix);
defineHiddenProp(this.to, '_matSuffix', this.matSuffix);
(<any> this.options)._markForCheck(this.field);
});
}
Expand Down

0 comments on commit ecca5d3

Please sign in to comment.