Merge pull request #6591 from KumJungMin/fix/issue-6525

fix(ConfirmPopup): set this.target to document.activeElement when this.target is empty
pull/6775/head
Tuğçe Küçükoğlu 2024-11-13 10:47:43 +03:00 committed by GitHub
commit 2780f5a568
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;
this.target = document.activeElement;
this.target = this.target || document.activeElement;
this.bindOutsideClickListener();
this.bindScrollListener();