Javascript 在消息框中选择字段Sencha Touch 2.x(焦点错误)
使用此选项:Javascript 在消息框中选择字段Sencha Touch 2.x(焦点错误),javascript,html,user-interface,sencha-touch,Javascript,Html,User Interface,Sencha Touch,使用此选项: Ext.Msg.prompt( 'Test', 'Open the picker', function(buttonId, value) {}, Ext.Msg, //scope false, //multiline 0, // default { // prompt config xtype: 'selectfield', displayField: 'value', stor
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
}
);
它显示带有选择字段的消息框,但当我触摸它时,它会显示消息框后面的选项面板,除非我关闭消息框,否则我无法选择它
就像Msg框有焦点,选项没有
运行:
我该如何解决这个问题呢?他们告诉我这不是一个bug,因为prompt会等待一个textfield或textareafield 我决定做我自己的小组:
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();