Skip to content

Commit 7ecc216

Browse files
committed
revert: fix(VDialog): check if element is already focused on focusin event
This reverts commit fa0a893.i fixes #9144 see #8459
1 parent 46d7dbe commit 7ecc216

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/vuetify/src/components/VDialog/VDialog.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,10 @@ export default baseMixins.extend({
215215
}
216216
this.$emit('keydown', e)
217217
},
218+
// On focus change, wrap focus to stay inside the dialog
219+
// https://github.com/vuetifyjs/vuetify/issues/6892
218220
onFocusin (e: Event) {
219-
if (
220-
!e ||
221-
e.target === document.activeElement ||
222-
!this.retainFocus
223-
) return
221+
if (!e || !this.retainFocus) return
224222

225223
const target = e.target as HTMLElement
226224

0 commit comments

Comments
 (0)