Skip to content

Error closing the panel of an autocomplete inside a destroyed view. #7315

Closed
@skyfremen

Description

@skyfremen

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Should not throw any error

What is the current behavior?

Error being thrown when attempting to close the panel of an autocomplete that is inside a destroyed view.

What are the steps to reproduce?

Plunker Link

Error Scenario
Step 1: Click on the button to open the view
Step 2 : Click on the AutoComplete but do not close the Panel
Step 3: Click on the button to close the view

Success Scenario
Step 1: Click on the button to open the view
Step 2 : Click on the AutoComplete
Step 2a : Close the Autocomplete Panel
Step 3: Click on the button to close the view

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

Should not throw error

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

Material Beta 11

Is there anything else we should know?

Related to (#5446) (880e6d5), #5413

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions