Browse Source

refactor: 放到if中

es6
iapyang 3 years ago
parent
commit
e1e95ed233
  1. 6
      src/base/combination/combo.js

6
src/base/combination/combo.js

@ -296,13 +296,13 @@
this.popupView && this.popupView.destroy();
this.popupView = null;
this._rendered = false;
} else {
this.popupView && this.popupView.invisible();
}
if (!e || !this.combo.element.__isMouseInBounds__(e)) {
this.element.removeClass(this.options.hoverClass);
}
} else {
this.popupView && this.popupView.invisible();
}
this.element.removeClass(this.options.comboClass);
delete needHideWhenAnotherComboOpen[this.getName()];

Loading…
Cancel
Save