emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.29k stars 170 forks source link

How to create an undraggable drawer #266

Closed suhjohn closed 4 months ago

suhjohn commented 4 months ago

I have some sliders inside a drawer which is making "data-vaul-no-drag" really annoying to work with. Is there any way that I can just make the drawer as a whole not draggable?

arsaizdihar commented 4 months ago

I think the problem is data-vaul-no-drag just work if the dragged element is the current target. I am expecting if the parent (recursively) has that attribute, then it is also considered as no drag.

arsaizdihar commented 4 months ago

Now you can just add the data-vaul=no-drag on Drawer.Content to make the whole drawer not draggable

yberg commented 3 months ago

Just what I need 👍 Any plans on a new release so we can use this?

CaduOlegario commented 3 months ago

I need this too, is there any release date?