-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[md-slide-toggle] setting default value to true brings pristine: false #4968
Comments
* If a developer sets an initial value for the slide-toggle the NgControl of the slide-toggle will turn dirty. The slide-toggle should only turn dirty if the value changed after initialization. Fixes angular#4968
* If a developer sets an initial value for the slide-toggle the NgControl of the slide-toggle will turn dirty. The slide-toggle should only turn dirty if the value changed after initialization. Fixes angular#4968
* If a developer sets an initial value for the slide-toggle the NgControl of the slide-toggle will turn dirty. The slide-toggle should only turn dirty if the value changed after initialization. Fixes angular#4968
see #4220 |
http://plnkr.co/edit/ZENOfcELsWaaHwqRDqRR?p=preview New releases of material broke plunker. This one shows the issue. |
This should be fixed with dfe10c3 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
BUG
What is the expected behavior?
default value with
true
should not affect the pristine stateWhat is the current behavior?
pristine state is changed
What are the steps to reproduce?
http://plnkr.co/edit/cCqjrY62mF1WKBSFPWeH?p=preview
What is the use-case or motivation for changing an existing behavior?
Current behavior is somehow disturbing form validation
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular-4.1.0, Material-2.0.0-beta-6, others are all
The text was updated successfully, but these errors were encountered: