fix: set this.target to document.activeElement when this.target is empty

pull/6591/head
KumJungMin 2024-10-16 21:45:16 +09:00
parent 22d6f8a037
commit 2b195ff849
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ export default {
this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false; this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;
this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false; this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;
this.target = document.activeElement; this.target = this.target || document.activeElement;
this.bindOutsideClickListener(); this.bindOutsideClickListener();
this.bindScrollListener(); this.bindScrollListener();