Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3052 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    37
    Vote Rating
    3
    DonM is on a distinguished road

      0  

    Default Bug with disabling a fieldset with a Ext.field.Select inside

    Bug with disabling a fieldset with a Ext.field.Select inside


    REQUIRED INFORMATION

    Touch version tested:
    • Sencha Touch 2.0.1
    Browser versions tested against:
    • Safari 4
    Description:
    • When you disable a fieldset, it seems to disable all fields inside so they can't be changed. If a selectfield is included in the fieldset it will grey out the text, but you can stick click it and the picker will appear and the value can be changed. If you disable the selectfield directly it will correctly not allow the picker to be brought up.
    Steps to reproduce the problem:
    • Create a formpanel with a fieldset that contains a selectfield and a textbox
    • Call disable() or apply the disabled: true configuration to the fieldset
    • When the app is run, the textbox field cannot be changed but the selectfield can be.
    The result that was expected:
    • The picker shouldn't appear if the fieldset it is contained in is disabled.
    The result that occurs instead:
    • The picker comes up and the value can be changed even when the fieldset is disabled.
    Test Case:

    Code:
        
    Ext.Viewport.setActiveItem(
    {
        xtype: 'formpanel',
        items:
        [
            {
                xtype: 'fieldset',
                title: 'Personal',
                disabled: true,
                items:
                [
                    {
                        xtype: 'textfield',
                        name: 'FirstName',
                        label: 'First Name'
                    },
                    {
                        xtype: 'selectfield',
                        name: 'Country',
                        label: 'Country',
                        options: [{text: 'United Kingdom',  value: 'UK'},
                        {text: 'United States', value: 'US'},
                        {text: 'Canada',  value: 'CAN'}]
                    }
                ]
            }
        ]
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    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


    Fixed in the next release. Thanks.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 2

Tags for this Thread