Closed
Description
Bug, feature request, or proposal:
Slide-toggle triggers change event on initialization if initial value of "checked" is true.
What is the expected behavior?
The event should only be fired in response to an interaction.
What is the current behavior?
The component fires the event before any user action has occurred.
What are the steps to reproduce?
Plunkr to reproduce here: http://plnkr.co/KCZtmelCWK6JKj0FDlh6
What is the use-case or motivation for changing an existing behavior?
If the app triggers an expensive operation, e.g. an API request, in response to the change event, this results in misfired updates and slows load time.
Which versions of Angular, Material, OS, browsers are affected?
All.
Is there anything else we should know?
I don't think so. :)
Metadata
Metadata
Assignees
Labels
No labels