You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
But, when i have errors, there is no .has-error class on the parent .form-group and no .help-block messages.
I don't understand because the markup is in the right place:
And in the Validator.prototype.showErrors function, the variables $group, $block and errors are good.
So the problem seems to be in Validator.prototype.clearErrors function, who's called at the same time !?
Ok, i have reproduced the problem, it's when you have more than one element, it keep only the last one:
(and if I comment the clearErrors function, this behaviour disapear) http://jsbin.com/javihugewa/edit?html,output
any idea of how to fix this?
The text was updated successfully, but these errors were encountered:
It looks like the button bootstrap-select added triggers a focusout event which causes a revalidation and clears the error. I'll fix this in the next version so that the event handlers are scoped only to events from INPUT_SELECTOR elements.
Hi @1000hz, and thanks a lot for the work!
I use Bootstrap select, and have a little problem.
First, i have to made this little modification (because bootstrap-select hide the native select):
And it works.
But, when i have errors, there is no
.has-error
class on the parent.form-group
and no.help-block
messages.I don't understand because the markup is in the right place:
And in the
Validator.prototype.showErrors
function, the variables$group, $block
anderrors
are good.So the problem seems to be in
Validator.prototype.clearErrors
function, who's called at the same time !?If i comment the code:
it works...
Any idea?
Thanks!
EDIT 1:
i've made a JSBin, and it's working with one element.
http://jsbin.com/qorinewoyi/edit?html,output
EDIT 2:
Ok, i have reproduced the problem, it's when you have more than one element, it keep only the last one:
(and if I comment the
clearErrors
function, this behaviour disapear)http://jsbin.com/javihugewa/edit?html,output
any idea of how to fix this?
The text was updated successfully, but these errors were encountered: