Browse Source

combo增加一个属性

es6
guy 4 years ago
parent
commit
850a1eb448
  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