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
first focus into an input,cannot validate #1624
Comments
@xiongsisi please provide a jsfiddle which reproduces your issue. with this little information we cannot help you. What do you do? What does the library do and what do you expect it should do? |
first picture is i second focus into the input,last one is the first focus. |
by default a elements get validated when it loses focus. Therefore I think it doesnt work on the 2nd focus but on the first blur. do you say, you want to start validation of the field on focus - even if the user did not start typing yet? |
yes,that is what i mean |
i think this is a bug,because i trigger onkeyup event,the library should start validation |
@xiongsisi I dont think it makes sense to validate a field on 1st focus, but maybe it somehow makes sense in your app. did you try invoking |
please provide a jsfiddle with steps to reproduce... you example shown above does not show that you invoke a keyevent somewhere. |
as you say,i have to write validator.element as many as inputs length |
what does that mean? do you intend to validate the whole form on first focus instead of one field?
with the information you provided I still dont see a bug in the library. |
Closing because no repro jsfiddle availabe. Thanks for the report. |
onfocusin: function( element ) {
i write 'this.lastElement = element;' in the fun
The text was updated successfully, but these errors were encountered: