Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    33
    Vote Rating
    0
    yerajeff is on a distinguished road

      0  

    Default Numberfield - any numbers after 15 are changed to zeros onblur

    Numberfield - any numbers after 15 are changed to zeros onblur


    I have a number field defined like so:

    PHP Code:
    {
    xtype'numberfield',
    name'ccnumber',
    id'ccnumber',
    label'Card Number',
    requiredtrue,
    minLength12,
    maxLength16,
    tabIndex7

    The problem is that any numbers entered into the input past 15 are turned to zeros when I click off of the numberfield.

    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.

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    33
    Vote Rating
    0
    yerajeff is on a distinguished road

      0  

    Default value also defaults to 0 instead of clearing field when clicking native x

    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

  4. #4
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    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.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    33
    Vote Rating
    0
    yerajeff is on a distinguished road

      0  

    Default Can I Trigger Native Keyboard Support?

    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?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi