7 Feb 2012 1:47 PM #1
Numberfield - any numbers after 15 are changed to zeros onblur
I have a number field defined like so:
label: 'Card Number',
So 56465456445645646544 would become 56465456445645600000 onblur
I cannot imagine that this is expected behavior. It still does this even with the basic required config options. Let me know if you need anymore information, thanks.
7 Feb 2012 2:04 PM #2
Thank you for the report.
7 Feb 2012 4:33 PM #3
value also defaults to 0 instead of clearing field when clicking native x
Im not sure if this is the intended behavior for the numberfield when clearing the value by clicking the x on the right side of the input, but currently it does not completely clear the field, it just puts a 0 in... I would assume the intended behavior is to completely clear the input...please correct me if i'm wrong, thanks
8 Feb 2012 11:18 AM #4
This seems to be an issue with the HTML5 numberfield, not Sencha Touch. Very weird behavior.
I suggest you use a text field instead, to get around this problem. To make the UX better, you could also listen to the keyup event and validate and add - between the card numbers.
As for the default value, that is expected behavior for the number field.
Thanks for the report.
8 Feb 2012 1:14 PM #5
Can I Trigger Native Keyboard Support?
That's an awkward HTML5 issue, I did end up using a textfield instead with the keyup listener, however, it would suck to lose the native keyboard support for the numberfield.
I'm developing the app using Chrome to test and my Droid Bionic to test the phone view... when the field is a numberfield it brings up Android's "number" keyboard rather than the default, I'm not sure what happens on an iPhone/iPad, I've yet to test it on one... is there a way to trigger that specfic keyboard on focus?
If not, are you guys considering a future work around that may solve that issue until it is fixed in HTML5?