Skip to content

Commit

Permalink
Merge pull request #6591 from KumJungMin/fix/issue-6525
Browse files Browse the repository at this point in the history
fix(ConfirmPopup): set this.target to document.activeElement when this.target is empty
  • Loading branch information
tugcekucukoglu authored Nov 13, 2024
2 parents a1f811a + 2b195ff commit 2780f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/confirmpopup/ConfirmPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2780f5a

Please sign in to comment.