Skip to content

Commit

Permalink
fix(material): use false for input static query (#2319)
Browse files Browse the repository at this point in the history
fix #2314
  • Loading branch information
aitboudad committed Jun 20, 2020
1 parent af6ecf8 commit cd53629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/input/src/input.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { FieldType } from '@ngx-formly/material/form-field';
`,
})
export class FormlyFieldInput extends FieldType implements OnInit {
@ViewChild(MatInput, <any> { static: true }) formFieldControl!: MatInput;
@ViewChild(MatInput, <any> { static: false }) formFieldControl!: MatInput;

get type() {
return this.to.type || 'text';
Expand Down

0 comments on commit cd53629

Please sign in to comment.