From 0402704c18cafdffde6f92ca33179cade9c86e87 Mon Sep 17 00:00:00 2001 From: uros Date: Thu, 1 Aug 2024 23:35:51 +0200 Subject: [PATCH] - fix: use focus instead of DomHandler.focus --- packages/primevue/src/confirmpopup/ConfirmPopup.vue | 2 +- packages/primevue/src/dialog/Dialog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/confirmpopup/ConfirmPopup.vue b/packages/primevue/src/confirmpopup/ConfirmPopup.vue index 9d2b594cd..d96a99742 100644 --- a/packages/primevue/src/confirmpopup/ConfirmPopup.vue +++ b/packages/primevue/src/confirmpopup/ConfirmPopup.vue @@ -191,7 +191,7 @@ export default { this.autoFocusAccept = null; this.autoFocusReject = null; - DomHandler.focus(this.target); + focus(this.target); this.target = null; this.unbindOutsideClickListener(); diff --git a/packages/primevue/src/dialog/Dialog.vue b/packages/primevue/src/dialog/Dialog.vue index 275ce8c53..595bd1c14 100755 --- a/packages/primevue/src/dialog/Dialog.vue +++ b/packages/primevue/src/dialog/Dialog.vue @@ -164,7 +164,7 @@ export default { }, onLeave() { this.$emit('hide'); - DomHandler.focus(this.target); + focus(this.target); this.target = null; this.focusableClose = null; this.focusableMax = null;