Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to stop vuetify v-bottom-sheet or (v-dialog) from blocking interaction with main content

We are trying to build an music playing interface on a Vue page that plays in a bottom player as described here: https://vuetifyjs.com/en/components/bottom-sheets/#music-player

But the playlist and other controls are in the main page. But the problem is that these elements get 'blocked' or deactivated or something, there is no way to interact with them. Just like in this example.

Input elements stop working and scrolling on the main page works only by grabbing the scrollbar on the side. @clicks are still registered, however, and scrolling on some other components work.

I think I have tried every API setting and combination in the docs, like attaching it to different dom elements, or hide-overlay, and persistent, but nothing seems to work. The same principle seems to apply to other dialogs that take focus in vuetify.

https://vuetifyjs.com/en/api/v-bottom-sheet/

Does anyone have experience with this or know a workaround for it? It would be greatly appreciated!

like image 344
xor Avatar asked Nov 14 '25 18:11

xor


2 Answers

I face the same issue and solve that with the "retain-focus" property

try this <v-bottom-sheet :retain-focus="false"></v-bottom-sheet>

like image 151
jerryIsHere Avatar answered Nov 17 '25 09:11

jerryIsHere


This is intended behaviour. Your best bet is hide-overlay in combination with persistent

<v-bottom-sheet
  hide-overlay
  persistent
></v-bottom-sheet>
like image 33
tauzN Avatar answered Nov 17 '25 07:11

tauzN