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

MdCheckbox: valueChanges observable emits new value twice #597

Closed
udos86 opened this issue Jun 1, 2016 · 3 comments
Closed

MdCheckbox: valueChanges observable emits new value twice #597

udos86 opened this issue Jun 1, 2016 · 3 comments

Comments

@udos86
Copy link

udos86 commented Jun 1, 2016

Bug, feature request, or proposal: Bug

What is the expected behavior?

valueChanges observable of MdCheckbox form control should emit new value only once when corresponding ngModel is updated programmatically

What is the current behavior?

valueChanges observable of MdCheckbox form control emits new value twice corresponding ngModel is updated programmatically

What are the steps to reproduce?

See this plunker: http://plnkr.co/edit/55wf5BxZ1cmHdFgEeu4K?p=preview

Open DevTools console and click test button --> current value is logged twice

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

Performance

@devversion
Copy link
Member

devversion commented Jun 1, 2016

This is a known issue and should be fixed with SHA d037ed3. I will check this with your plunker later.

@jelbourn
Copy link
Member

jelbourn commented Jun 1, 2016

Fixed by #551

@jelbourn jelbourn closed this as completed Jun 1, 2016
@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 4, 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