NuxtN
Nuxt9mo ago
8 replies
Kal

Unable to trap focus within a Nuxt UI Drawer

I have buttons inside a drawer, and when opening the drawer, page focus is not on the drawer, instead I can see focus changing on background elements as I hit tab. Eventually hitting tab enough times brings the focus onto the drawer content.

What needs to be done to get:

1. Focus to be on the first element in the drawer when it opens
2. Focus to remain trapped within the drawer while it's open
Was this page helpful?