Closed lilyannehall closed 10 years ago
Indeed. my first guess is that there is a particular version of android that only looks for the readonly attribute, not the value of it. No matter, moving it outside the loop and only setting it if it is true.
Here we set an option for
lockInput
which determines whether or not to add thereadonly
attribute to the target input field: https://github.com/jtsage/jquery-mobile-datebox/blob/master/js/jqm-datebox.core.js#L27And here we set the
readonly
attribute based on that option's value: https://github.com/jtsage/jquery-mobile-datebox/blob/master/js/jqm-datebox.core.js#L841However, when calling the plugin and passing this option, it has no effect.
So, I am forced to manually remove it. This is to fix the Samsung (maybe others) Android keyboard from skipping the input when using the "next" and "previous" buttons.