Looks like we can't reproduce the issue or there's a problem in the test case provided.
Numberfield - any numbers after 15 are changed to zeros onblur
I have a number field defined like so:
The problem is that any numbers entered into the input past 15 are turned to zeros when I click off of the numberfield.
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.
Thank you for the report.
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
Sencha - Sencha Touch Dev Team
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.
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?