BB10 input [type = date] and datepicker

I am working on error requests for the jQuery Mobile / HTML5 application on Blackberry 10. One of the errors reported is just showing up on BB10. The error report is that the datepicker is sometimes not displayed when the date field (input type = date) is used.

After trying this for a while, it turned out that on BB10 the date selection is not caused by the date field having focus, but rather by pressing the 'field' button - and this answer seems a little time sensitive.

As an example: if I use jQuery Mobile "clear button", for example:

<input type="date" name="my-field" value="" data-clear-btn="true" autocorrect="off"
       autocapitalize="off" />

I can easily create a script in which I give the date, and then click the clear button. The end result is that the date field has focus, but the date selection does not appear automatically. Once the state of the form looks like this, it’s pretty easy to get problematic behavior - tap and nothing will happen.

As I said above, there seems to be a little time sensitivity to tapping. When you try to give this focus on the ground, some people seem to press pretty quickly - jQuery seems to notice the taps and does its magic to apply the “ui-focus” style, but still seems too fast to get a date picker to intervene. Until now, every time I held my finger for a full second, I always had a date picker, but my usual click speed is too fast to trigger a date picker (and QA people certainly seem to have worked this several times).

So my question is: can I do anything? Is there some kind of event that I can fire in focus that will call the datepicker function? Or some kind of configuration that I can play with?

I am afraid that the answer is probably no, but I wanted to ask.

+3
source share

All Articles