mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 05:25:35 +08:00
FIX: change event target on select kit row (#16960)
This commit is contained in:
parent
f1d6628721
commit
098bea19de
@ -136,10 +136,10 @@ export default Component.extend(UtilsMixin, {
|
|||||||
handleBlur(event) {
|
handleBlur(event) {
|
||||||
if (
|
if (
|
||||||
(!this.isDestroying || !this.isDestroyed) &&
|
(!this.isDestroying || !this.isDestroyed) &&
|
||||||
event.relatedTarget &&
|
event.target &&
|
||||||
this.selectKit.mainElement()
|
this.selectKit.mainElement()
|
||||||
) {
|
) {
|
||||||
if (!this.selectKit.mainElement().contains(event.relatedTarget)) {
|
if (!this.selectKit.mainElement().contains(event.target)) {
|
||||||
this.selectKit.close(event);
|
this.selectKit.close(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user