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

Update validate after change element #111

Open
SergioGeeK7 opened this issue Jan 8, 2016 · 6 comments
Open

Update validate after change element #111

SergioGeeK7 opened this issue Jan 8, 2016 · 6 comments

Comments

@SergioGeeK7
Copy link

Hello.

I have a form and after submitting show this

http://i.imgur.com/uM9zgto.png

when I completed the filds of the form the select doesn't update , he continues like invalid input for the drop down.

http://i.imgur.com/X0FWGoH.png

I think we should add a auto-validate property like input-paper . meanwhile
I have add a code after changed event is fired

http://i.imgur.com/zbbtOdz.png

@cdata
Copy link
Contributor

cdata commented Jan 29, 2016

If I understand this correctly, you are proposing that we add an attribute to auto-validate the paper-dropdown-menu when the value changes?

@SergioGeeK7
Copy link
Author

mmmmm so so, I mean if we add auto-validate property to the paper-dropdown-menu this will auto-validate when the value change, this will avoid the red line under the drop-down-menu after submitting one wrong time

@hormesiel
Copy link

Adding an auto-validate attribute like paper-input already has would be a great idea imo. This way if the form is validated and the dropdown has no value selected, it goes red like it currently does, but if I select a value I except it to switch back from error to normal state without having to resubmit the form or to manually call dropdown.validate(), which isn't the case currently. Hence the auto-validate attribute.

@nathancassano
Copy link

Had the same issue except I wanted to add that the this.fire('change') is not firing off when the selection is changed.

@mercmobily
Copy link

I just got bitten by this one too. Changing the select doesn't re-validate, which creates buggy forms -- or, forces developers to run validate() manually

@mercmobily
Copy link

I fixed this issue in #207 . @flawyte In the meantime, feel free to monkey patch it -- that's what I did in https://github.com/mercmobily/hot-polymer-monkey ...

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

No branches or pull requests

5 participants