Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Cheshire
    Posts
    4
    Vote Rating
    0
    richard.styles is on a distinguished road

      0  

    Default Bug on changing inputType on a textbox

    Bug on changing inputType on a textbox


    REQUIRED INFORMATION


    Architect Build tested:
    • Build: 951
    Project Type:
    • ExtJS 4.x
    Description:
    • Upon changing an Ext.form.field.text componentto a Ext.form.field.number when using the config panel and changing the component type under inputType The config panel does not change to reflect the change in type, it remains as a Ext.form.field.text. The component does change within the Design window (although does not look identical to a Ext.form.field.number component)
    Steps to reproduce the problem:
    • Create a new project in Sencha Architect 2.2
    • Add a new panel to a view
    • Select a text field component and add it to the view
    • change input type from config panel to Number type
    • Config options does not update
    The result that was expected:
    • Component changes from Ext.form.field.text to Ext.form.field.number then config panel updates to reflect change.
    The result that occurs instead:
    • Component changes from Ext.form.field.text to Ext.form.field.number then config panel remains as Ext.form.field.text and does not allow for changing of other components property's easily.
    HELPFUL INFORMATION


    Screenshot, Project, or Video:
    • attached project file, new project, two panels added to view (form type and panel type) each initially had a textfield added and changed using the config to a number type. config panel does not display number properties.
    Possible fix:
    • Unknown
    Operating System:
    • Windows 7 x64
    Attached Files

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,369
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    inputType is a configuration that will change the actual dom input type. It does not change the type of class you are using.

    You are looking to transform your existing text field to a number field. Right click on it, go to the transform menu and then click Number.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread