Skip to content

[MatSelect] this.panel is undefined when changing option #8245

@nicolainormann

Description

@nicolainormann

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Open select and pick option without error

What is the current behavior?

Throws console error
Firefox: this.panel is undefined
Chrome: Cannot read property 'nativeElement' of undefined
Edge: Unable to get property 'nativeElement' of undefined or null reference

What are the steps to reproduce?

https://stackblitz.com/edit/angular-vyttwn
Open select > Pick option > See console for error

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

Angular 5.0.0
Material 2.0.0-beta.12

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