选择字段到消息框sencha touch 2.x(焦点错误)



使用以下方式:

Ext.Msg.prompt(
    'Test',
    'Open the picker',
    function(buttonId, value) {},
    Ext.Msg, //scope
    false, //multiline
    0, // default
    { // prompt config
        xtype: 'selectfield',
        displayField: 'value',
        store: 'SettingsTag',
        usePicker:false
    }
);

它显示了带有Select字段的MSG框,但是当我触摸它时,它显示了消息框后面的选项面板,除非我关闭MSG框...

,否则我无法选择它。

就像味精盒有重点,选项不会...

运行:https://fiddle.sencha.com/#fiddle/2S5

如何解决此问题?

他们告诉我这不是错误,因为提示会等待文字场或textareafield。

http://www.sencha.com/forum/showthread.php?280243-selectfield-inside-inside-messageboxbox-prompt-focus-error&p=1024681#post1024681

我解决了自己的面板:

popup = Ext.create('Ext.Panel', {
                    floating: true,
                    modal: true,
                    centered: true,
                    items: [
                        {
                            xtype: 'toolbar',
                            title: 'Custom Search',
                            docked: 'top'
                        },
                        Ext.create('Ext.field.Select', {
                            label: 'Test',
                            name: 'Test 2',
                            options: [
                                {text: 'aesd', value: '1'},
                                {text: 'aesd', value: '1'},
                            ]
                        })
                    ]
                });
Ext.Viewport.add(this.popup);
this.popup.show();

最新更新