Skip to content

Commit

Permalink
fix(VDialog): don't try to focus tabindex="-1" or hidden inputs
Browse files Browse the repository at this point in the history
fixes #15745
  • Loading branch information
KaelWD committed Sep 8, 2022
1 parent 4cefc67 commit b8369a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VDialog/VDialog.tsx
Expand Up @@ -70,8 +70,8 @@ export const VDialog = genericComponent<new () => {
!overlay.value.contentEl.contains(after)
) {
const focusable = [...overlay.value.contentEl.querySelectorAll(
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
)].filter(el => !el.hasAttribute('disabled')) as HTMLElement[]
'button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'
)].filter(el => !el.hasAttribute('disabled') && !el.matches('[tabindex="-1"]')) as HTMLElement[]

if (!focusable.length) return

Expand Down

0 comments on commit b8369a9

Please sign in to comment.