我有一個ExtJS應用程序,它使用xtype菜單創建包含兩個選項的下拉菜單。其中一個選項,在鼠標懸停時,會出現兩個附加子選項。當試圖將鼠標懸停在某個子選項上時,菜單立即超時並消失。ExtJS xtype菜單在Chrome中超時
這隻發生在Chrome中。 Safari很好。另外,如果我使用鍵盤箭頭進行選擇,它可以正常工作。
Ext.define('App.view.deposit.ReportButton', {
extend: 'Ext.button.Button',
alias: 'widget.depositreporbutton',
requires: [
'Ext.menu.Menu',
'Ext.menu.Separator'
],
text: 'Reports',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
menu: {
xtype: 'menu',
minWidth: 200,
items: [
{
text: 'Deposit Report',
menu: {
items: [
{
xtype: 'menuitem',
itemId: 'deposit-report-media-button',
text: 'By Media Type'
},
{
xtype: 'menuitem',
itemId: 'deposit-report-fund-button',
text: 'By Income Fund'
}
]
}
},
{
xtype: 'menuitem',
itemId: 'receipt-report-button',
text: 'Contribution Receipts'
}
]
}
});
me.callParent(arguments);
}
});
如果您在Chrome 43中使用ExtJs 4,那麼會出現一個錯誤。查看https://www.sencha.com/forum/announcement.php?f=134&a=58 – Yellen