Browse Source

fix: 修复bi-focus-shadow在下拉框收起时不会blur导致focus-within伪类一直存在的问题

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

8
src/base/combination/combo.js

@ -296,12 +296,14 @@
this.popupView && this.popupView.destroy(); this.popupView && this.popupView.destroy();
this.popupView = null; this.popupView = null;
this._rendered = false; this._rendered = false;
} else {
this.popupView && this.popupView.invisible();
}
if (!e || !this.combo.element.__isMouseInBounds__(e)) { if (!e || !this.combo.element.__isMouseInBounds__(e)) {
this.element.removeClass(this.options.hoverClass); this.element.removeClass(this.options.hoverClass);
} // 应对bi-focus-shadow在收起时不失焦
} else { this.element.blur();
this.popupView && this.popupView.invisible();
} }
this.element.removeClass(this.options.comboClass); this.element.removeClass(this.options.comboClass);

Loading…
Cancel
Save