Browse Source

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

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

10
src/base/combination/combo.js

@ -296,14 +296,16 @@
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);
// 应对bi-focus-shadow在收起时不失焦
this.element.blur();
}
this.element.removeClass(this.options.comboClass);
delete needHideWhenAnotherComboOpen[this.getName()];

Loading…
Cancel
Save