We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Bug
FormGroup.reset() should reset the form validation
FormGroup.reset()
FormGroup.reset() sets the form classes to ng-pristine and ng-untoched but FormControl.hasError(...) still returns truthy.
ng-pristine
ng-untoched
FormControl.hasError(...)
Plunker: http://embed.plnkr.co/Hlivn4/
FormGroup.reset() should reset the form to it's initial state including removing validation errors.
Angular ^5.0.0, Material 5.0.0
The text was updated successfully, but these errors were encountered:
Please see #4190 and particularly #4190 (comment).
If you want to customize under which conditions mat-error is shown, consider implementing your own ErrorStateMatcher.
mat-error
ErrorStateMatcher
Sorry, something went wrong.
Closing as duplicate of #4190
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.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
FormGroup.reset()
should reset the form validationWhat is the current behavior?
FormGroup.reset()
sets the form classes tong-pristine
andng-untoched
butFormControl.hasError(...)
still returns truthy.What are the steps to reproduce?
Plunker: http://embed.plnkr.co/Hlivn4/
What is the use-case or motivation for changing an existing behavior?
FormGroup.reset()
should reset the form to it's initial state including removing validation errors.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular ^5.0.0, Material 5.0.0
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: