Discussion:
jquery.validate in chrome field loses focus on unhighlight
jrallan
2010-02-11 20:36:02 UTC
Permalink
This is in Chrome (4) on both Mac and PC.

When a field is marked as invalid and your are entering a valid value
as soon as the value is valid and validate runs the "unhighlight"
function the field loses focus and you must click with the mouse to
regain focus.

Any suggestions? You cannot add $(element).focus() to the unhighlight
function because it runs on blur() so can never escape the field.

As it works in every other browser I assume this is a Chrome bug but
maybe there is a jQuery fix?

Thanks.
Nathan Klatt
2010-02-12 03:18:07 UTC
Permalink
Post by jrallan
Any suggestions? You cannot add $(element).focus() to the unhighlight
function because it runs on blur() so can never escape the field.
Have you tried returning false from a blur handler or something along
those lines?

Good luck.

Nathan

Loading...