Skip to content

Commit cd53629

Browse files
authored
fix(material): use false for input static query (#2319)
fix #2314
1 parent af6ecf8 commit cd53629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/input/src/input.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { FieldType } from '@ngx-formly/material/form-field';
3131
`,
3232
})
3333
export class FormlyFieldInput extends FieldType implements OnInit {
34-
@ViewChild(MatInput, <any> { static: true }) formFieldControl!: MatInput;
34+
@ViewChild(MatInput, <any> { static: false }) formFieldControl!: MatInput;
3535

3636
get type() {
3737
return this.to.type || 'text';

0 commit comments

Comments
 (0)