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

Calling .reset() on a form control does not set pristine flag to true #95

Open
platosha opened this issue Oct 7, 2016 · 1 comment
Open

Comments

@platosha
Copy link
Owner

platosha commented Oct 7, 2016

Happens with <vaadin-date-picker>.

Resetting pristine flag requires to call .reset() several times.

Live demo: https://plnkr.co/edit/io5iBCw5jPUNpZsHViUV?p=preview

@platosha platosha changed the title Calling .reset() on form control does not set pristine flag to true Calling .reset() on a form control does not set pristine flag to true Oct 7, 2016
@vlukashov
Copy link

This is probably the same issue: https://embed.plnkr.co/eD8BeYrzTuWyGF3wLCWd/

Polymer elements in an angular form appear initially dirty whereas native elements appear initially pristine. In order to reset the pristine flag, it takes to call form.reset() twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants