Skip to content

md-autocomplete thrown error when using with ngfor  #5413

Closed
@skyfremen

Description

@skyfremen

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Array should populate based on newly assign array after touching/selecting value from autocomplete

What is the current behavior?

Cannot reassign the array in ngfor after touch the autocomplete control but it working with md-input.

What are the steps to reproduce?

Step 1: Click on Input
Step 2 : Click on button "Click Me"
Expected behavior => No error and array using ngFor has been reassign
Actual behavior=> No error and array using ngFor has been reassign

Step 3: Touch/Select value from Autocomplete
Step 4: Click on button "Click Me"
Expected behavior=> No error and array using ngFor has been reassign
Actual behavior=> Error and array using ngFor not render (hang)

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://plnkr.co/edit/DaVDisXWMEFwUSF8RrV0?p=preview

What is the use-case or motivation for changing an existing behavior?

NA

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material Beta 7

Is there anything else we should know?

NA

Metadata

Metadata

Assignees

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