diff --git a/src/material/form-field/form-field.ts b/src/material/form-field/form-field.ts index 6cdb0432570e..8bf83c8d8a7c 100644 --- a/src/material/form-field/form-field.ts +++ b/src/material/form-field/form-field.ts @@ -270,10 +270,10 @@ export class MatFormField extends _MatFormFieldMixinBase } @ContentChild(MatPlaceholder, {static: false}) _placeholderChild: MatPlaceholder; - @ContentChildren(MatError) _errorChildren: QueryList; - @ContentChildren(MatHint) _hintChildren: QueryList; - @ContentChildren(MatPrefix) _prefixChildren: QueryList; - @ContentChildren(MatSuffix) _suffixChildren: QueryList; + @ContentChildren(MatError, {descendants: true}) _errorChildren: QueryList; + @ContentChildren(MatHint, {descendants: true}) _hintChildren: QueryList; + @ContentChildren(MatPrefix, {descendants: true}) _prefixChildren: QueryList; + @ContentChildren(MatSuffix, {descendants: true}) _suffixChildren: QueryList; constructor( public _elementRef: ElementRef, private _changeDetectorRef: ChangeDetectorRef,