Skip to content

refactor(autocomplete): explicitly set static flag on all queries #15721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ export class MatAutocomplete extends _MatAutocompleteMixinBase implements AfterC
_isOpen: boolean = false;

/** @docs-private */
@ViewChild(TemplateRef) template: TemplateRef<any>;
@ViewChild(TemplateRef, {static: false}) template: TemplateRef<any>;

/** Element for the panel containing the autocomplete options. */
@ViewChild('panel') panel: ElementRef;
@ViewChild('panel', {static: false}) panel: ElementRef;

/** @docs-private */
@ContentChildren(MatOption, { descendants: true }) options: QueryList<MatOption>;
@ContentChildren(MatOption, {descendants: true}) options: QueryList<MatOption>;

/** @docs-private */
@ContentChildren(MatOptgroup) optionGroups: QueryList<MatOptgroup>;
Expand Down