Results 1 to 2 of 2

Thread: FieldContainer enable/disable bug ExtJs 5.1

    This duplicates another bug already reported in our system: EXTJS-16401
  1. #1
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574

    Default FieldContainer enable/disable bug ExtJs 5.1

    Hallo,

    after disabling fieldcontainer the subitems are not enabled anymore.
    hier is the fiddle code:
    PHP Code:
    Ext.application({    name 'Fiddle',
        
    launch : function() {        var fieldContainer Ext.create('Ext.form.FieldContainer', {                items: [{                    xtype'textfield',                    fieldLabel"Field One",                    name'fieldOne'                }, {                    xtype'textfield',                    fieldLabel"Field Two",                    name'fieldTwo'                }]            });        Ext.create('Ext.container.Viewport', {            layout'fit',            items: [{                xtype'form',                dockedItems: [{                    xtype'toolbar',                    dock'top',                    items: [{                        xtype'button',                        text"Enable/Disable",                        enableToggletrue,                        handler: function() {                            console.log(arguments);                            fieldContainer.disable();                        },                        scopethis,                        listeners: {                            toggle: {                                fn: function(buttontoggled) {                                    fieldContainer.setDisabled(toggled);                                    console.log(fieldContainer.isDisabled(), toggled);                                },                                scopethis                            }                        }                    }]                }],                items: [                    fieldContainer                ]            }]        });    }}); 
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  2. #2
    Sencha Premium User lumberjack's Avatar
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    781

    Default

    Thanks for the report! The fiddle below replicates the issue. I have submitted a defect to our bug tracker.

    Regards,
    Brian


Posting Permissions

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