Skip to content

Deleting selection and re-choosing causes wrong selection #4356

Closed

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)

Activity

  1. willshowell commented on May 2, 2017

    @willshowell
    Contributor

    Looks like a dupe of #4094. Fix on the way in #4187

  2. inthegarage commented on May 2, 2017

    @inthegarage
    Author

    Thanks @willshowell , I can check via the plunkr at any-time. github search wasn't being helpful on the search, hence the possible duplicate.

  3. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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