Skip to content

Deleting selection and re-choosing causes wrong selection #4356

Closed
@inthegarage

Description

@inthegarage

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When deleting an old selection and choosing a new one and then select enter it should choose the new selection.

What is the current behavior?

When deleting an item and then selecting the new one only the new one should be sent to onSelection change. Delete the current one several times and select a new one, you will see eventually in the console that the new one and then the old one are reported, the old one being last. The old selection is actually being seen on onSelectionChange. Do not use the mouse as that works fine, use keyboard arrows and enter.

What are the steps to reproduce?

http://plnkr.co/edit/9ECG85?p=preview

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

4.1.0 + 2.0.0-beta.3 &Windows & all browsers (FF & Chrome/Opera)

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