Browse Source

Pull request #1399: 无JIRA任务 combo的hidewhenanothercomboopen

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

* commit '99e6e964b14655a59785fcf147b9be9202ce9430':
  combo的hidewhenanothercomboopen
es6
guy 4 years ago
parent
commit
7e4fb8f08e
  1. 10
      src/base/combination/combo.js

10
src/base/combination/combo.js

@ -275,13 +275,14 @@
this.adjustWidth();
this.adjustHeight();
}
return;
return false;
}
var isHide = this.options.hideChecker.apply(this, [e]);
if (isHide === false) {
return;
return false;
}
this._hideView();
return true;
},
_hideView: function () {
@ -308,10 +309,11 @@
this.popupView.visible();
BI.each(needHideWhenAnotherComboOpen, function (i, combo) {
if (i !== self.getName()) {
combo && combo.hideView();
if (combo && combo._hideIf(e)) {
delete needHideWhenAnotherComboOpen[i];
}
}
});
needHideWhenAnotherComboOpen = {};
this.options.hideWhenAnotherComboOpen && (needHideWhenAnotherComboOpen[this.getName()] = this);
this.adjustWidth(e);
this.adjustHeight(e);

Loading…
Cancel
Save