posabsolute/jQuery-Validation-Engine — Issue #233: field.focus() causes keypad flicker w/ mobile devices during submission
Author: rbdrbd
Created: 2012-01-05 01:13:55+00:00
State: open

I use validationEngine 2.5 on a Jquery mobile 1.0-based app. It works pretty well, but line 316 of jquery.validationEngine.js has a line "field.focus();". Not sure why it's there entirely, but on a mobile device (e.g. the iPhone), focusing the field like this will pop up the mobile keyboard. Thus, when submitting a form that uses validationEngine on a mobile device, one will see the keyboard quickly pop up and disappear if there are any text/number fields in the form (anything the keyboard would show with). This is quite disruptive and definitely noticable to the whole user experience, as it will shift the screen around quite a bit.

I simply removed this line and it seems to work fine. I'll leave the maintainers to decide if this line is really necessary, but it really should go, at least on mobile. Thanks!