Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting selection and re-choosing causes wrong selection #4356

Closed
inthegarage opened this issue May 2, 2017 · 3 comments
Closed

Deleting selection and re-choosing causes wrong selection #4356

inthegarage opened this issue May 2, 2017 · 3 comments

Comments

@inthegarage
Copy link

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)

@willshowell
Copy link
Contributor

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

@inthegarage
Copy link
Author

inthegarage commented May 2, 2017

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants