Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    14
    Vote Rating
    0
    wangld is on a distinguished road

      0  

    Default Ext.form.field.Trigger has a focus problem with unselectable Ext.dom.Element

    Ext.form.field.Trigger has a focus problem with unselectable Ext.dom.Element


    Ext.form.field.Trigger has a focus problem with unselectable Ext.dom.Element




    Ext version tested:
    • Ext 4.1.0 gpl


    Browser versions tested against:
    • IE8


    Description:
    • if numberfield/datefield with emptyText is focusing, then click the blank area of grid, the numberfield/datefield will lost its focus, but their inputEl will not.Then you can input some char with the emptyText.
    QQ截图20120603220743.png

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,207
    Vote Rating
    856
    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


    Can I get a test case and have you tried it with a newer release like 4.1.1 RC2? I tried this and it works for me:

    Code:
    new Ext.panel.Panel({
        renderTo : document.body,
        width    : 400,
        height   : 400,
        title    : 'Test',
        items    : [
            {
                xtype      : 'numberfield',
                fieldLabel : 'Test',
                emptyText  : 'click',
                allowBlank : false
            },
            {
                xtype   : 'gridpanel',
                title   : 'Test',
                height  : 200,
                columns : [
                    {
                        header : 'Foo'
                    }
                ]
            }
        ]
    });
    I clicked on the field and then clicked on the grid and it worked for me.
    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 User
    Join Date
    May 2012
    Posts
    14
    Vote Rating
    0
    wangld is on a distinguished road

      0  

    Default


    It's not OK

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    14
    Vote Rating
    0
    wangld is on a distinguished road

      0  

    Default


    I'm sorry, it's not OK. I have tried it with the release extjs 4.1.1GA.

    Code:
    Ext.define('MyForm', {    extend: 'Ext.form.Panel',
        title: 'Form with TriggerField',
        bodyPadding: 5,
        initComponent: function() {
            this.items = this.buildItems();
            this.callParent(arguments);
        },
        
        buildItems: function() {
            return [{
                xtype: 'numberfield',
                fieldLabel: 'Sample Number',
                emptyText: 'click the trigger'
            }, Ext.create('Ext.grid.Panel', {
                title: 'Simpsons',
                columns: [
                    { header: 'Name',  dataIndex: 'name' },
                    { header: 'Email', dataIndex: 'email', flex: 1 },
                    { header: 'Phone', dataIndex: 'phone' }
                ],
                height: 200,
                width: 400
            })];
        }
    });

Thread Participants: 1