Browse Source

refactor: 放到if中

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

8
src/base/combination/combo.js

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

Loading…
Cancel
Save