Results 1 to 2 of 2

Thread: [PR3] Numberfields with a value attribute config always return their initial value

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
      0  

    Default [PR3] Numberfields with a value attribute config always return their initial value

    When I give a numberfield a value initializer, calling Ext.getCmp('myid').getValue() always returns the configured initializer.

    I have this:
    Code:
    {
                xtype:'formpanel',
                items:[
                    {
                        xtype:'fieldset',
                          defaults:{
                            labelWidth:'35%',
                        },
                        items:[
                            {
                                id:'myId',
                                xtype:'numberfield',
                                name:'something',
                                label:'something'
                                value:200
                            }]
                    }]
    }
    getValue() is always returning 200. If I remove the value:200 config, I start getting the actual value of the input this component is controlling

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    This is a known bug. Thanks.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Tags for this Thread

Posting Permissions

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