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;