Results 1 to 2 of 2

Thread: NumberField doc say Strings are returned from the onChange event

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default NumberField doc say Strings are returned from the onChange event

    From the docs I thought I could swap a NumberField for a TextField in order to get a numeric keyboard to display on an Android touch device. Switching to the NumberField did show me the keyboard layout I was expecting, but my code was expecting the onChange event to return a String for the new value, which was true for TextField but NumberField returned a number, even thought the doc says it should have returned a String.

    My ultimate solution was to use a TextField with inputType='number'. I now get the keyboard layout I want with a String being returned from onChange.

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    Looks like a documentation inheritance issue since the value does get transformed into a Number. Would calling value.toString() not be sufficient enough for your case?
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Decoding JSON strings returned by form submit
    By trevor.rosen in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 1 Jul 2011, 9:58 AM
  2. onChange event for grid?
    By ultramedia in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 16 Dec 2009, 2:56 AM
  3. NumberField does not fire the onChange event
    By jhudson888 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 8 May 2009, 7:16 AM
  4. Event.ONCHANGE for ComboBox?
    By zakabog in forum Ext GWT: Help & Discussion (1.x)
    Replies: 4
    Last Post: 22 Jan 2009, 9:37 AM
  5. onChange Event
    By electric_bit in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 8 Jan 2007, 2:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •