Skip to content

ng-template inside MatAutocomplete doesn't work #18353

@fetis

Description

@fetis

Reproduction

https://stackblitz.com/edit/angular-wwwm2h

Steps to reproduce:

  1. Click on the input field

Expected Behavior

Autocomplete list is rendered on input click

Actual Behavior

Nothing is rendered

If you uncomment extra mat-option then list appears. I think ii's connected with the fact that autocomplete is unable to determine the number of options if they're coming from ng-template

Environment

  • Angular: 8.2.14
  • CDK/Material: 8.2.3
  • Browser(s): any
  • Operating System (e.g. Windows, macOS, Ubuntu): any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions