Browse Source

Pull request #1389: combo增加一个属性

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'bc8817176ad34ddb9fdc8b18215e597890efd080':
  combo增加一个属性
es6
guy 4 years ago
parent
commit
fb730e2b02
  1. 7
      src/base/combination/combo.js

7
src/base/combination/combo.js

@ -301,12 +301,15 @@
},
_popupView: function (e) {
var self = this;
this._assertPopupViewRender();
this.fireEvent(BI.Combo.EVENT_BEFORE_POPUPVIEW);
this.popupView.visible();
BI.each(needHideWhenAnotherComboOpen, function(i, combo){
combo && combo.hideView();
BI.each(needHideWhenAnotherComboOpen, function (i, combo) {
if (i !== self.getName()) {
combo && combo.hideView();
}
});
needHideWhenAnotherComboOpen = {};
this.options.hideWhenAnotherComboOpen && (needHideWhenAnotherComboOpen[this.getName()] = this);

Loading…
Cancel
Save