一个插件有一个奇怪的问题,它使组合框允许多个选择,插件是 LovCombo,我让它工作到可以选择多个选择的地步,如果我用向下箭头折叠组合框,我看到选择保留在组合框,如果我进行选择然后单击组合框外的任何位置,那么值就会消失!
问题可以在http://jsfiddle.net/5Asf4/12/看到
Ext.onReady(function () {
var lc = new Ext.ux.form.LovCombo({
id:'lovcombo'
//,width:300
,fieldLabel: 'Test Data'
,hideOnSelect:false
//,maxHeight:200
,store:[
[1, 'Personnel []']
,[11, 'Finance (33)']
,[5, 'Door']
,[6, 'Door Panel']
,[2, 'Management !77']
,[25, 'Production']
,[3, 'Users']
,[20, 'Window']
,[21, 'Window Panel']
,[22, 'Form Panel']
,[23, 'Grid Panel']
,[24, 'Data View Panel']
]
,triggerAction:'all'
,mode:'local'
});
var addAssetDialog = new Ext.Window( {
id: 'maintenance_addAssetDialog',
title: 'Test Multi Select Combobox',
closeAction: 'hide',
items:[
{
xtype: 'form',
id: 'maintenance_addAssetForm',
border: false,
bodyBorder: false,
items: [
lc
],
}
],
buttons:[
{
text: 'Cancel',
disabled: true,
handler: function ( ) {
},
scope: this
},
{
text: 'Save',
disabled: true,
handler: function ( ) {
},
scope: this
}
],
});
addAssetDialog.show();
}); //结束onReady