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
Class Handler don't remove error class neither message #1122
Comments
Could you please put together a working example, for example starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101 |
Hi, sure... here is the complete example: http://codepen.io/anon/pen/GqmYoz?editors=1000 Cheers. |
Any help? |
Sorry, not much time these days as I'm travelling |
Thanks for reporting the issue and for creating a working example. Sorry it took me so long to address it. Looks like I've opened a PR to address this, please subscribe to that issue and/or try out that branch. If you want to address this in the meantime, you would have to detect the Not much else I can do at this point, so I'll close this. |
Hi, I create a simple form to test. Im using lastest versions of select2 and parsley.js.
HTML:
Select2 library, hide the original select and add the next code:
When I try to submit the form without select one item in the select, validation works fine and put class and message error in the right places (.select2-selection for class and #sel_error for message. Last option is because if I don't setup it, message error appears above select, not under #979)
But, if I select an option, class and error message don't dissapear.
I was trying to use the function $('#sel').on('change') of select2 library, to remove them manually, but I don't know how I can check if the form or field were validated at last one time, cause if I select one item and then I unselect it, class and message appears without submit the form.
The text was updated successfully, but these errors were encountered: