FIX: change event target on select kit row (#16960)

This commit is contained in:
Jean 2022-06-01 02:49:04 -04:00 committed by GitHub
parent f1d6628721
commit 098bea19de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -136,10 +136,10 @@ export default Component.extend(UtilsMixin, {
handleBlur(event) {
if (
(!this.isDestroying || !this.isDestroyed) &&
event.relatedTarget &&
event.target &&
this.selectKit.mainElement()
) {
if (!this.selectKit.mainElement().contains(event.relatedTarget)) {
if (!this.selectKit.mainElement().contains(event.target)) {
this.selectKit.close(event);
}
}