#497·vaul

Focus is trapped inside drawers when always open even with modal=false

Author: natlusCreated Oct 28, 2024Updated May 5, 2026

When a Drawer is always open and non-dismissible, for example when using snapPoints, tabbing into the drawer or nested drawers will trap the focus and you won't be able to tab back into the rest of the page. Even when using modal={false}.

Repro: https://codesandbox.io/p/devbox/85dwhz

Tabbing the page will result in focus on:

  1. Button outside drawer
  2. Handle in main drawer
  3. Handle in secondary drawer

Tabbing will now be stuck in a loop between main and secondary drawer. (This also happens with only 1 drawer, nested drawers only to debug my specific case.)

Is there a way to get around this behavior? Or is it an issue with Radix dialogs and/or vaul's handling of modal=false?