emilkowalski / vaul

A drawer component for React.
https://vaul.emilkowal.ski
MIT License
6.02k stars 203 forks source link

scaled background not working #256

Closed bent101 closed 7 months ago

bent101 commented 8 months ago

shouldScaleBackground={true} isn't working for me and it looks like it's not for you either: in the demo in the readme, the background scaled the second time but not the first time. Was this intentional and can you reproduce it? If not, I'll try to make a minimal repro

emilkowalski commented 8 months ago

It works fine on https://vaul.emilkowal.ski/, please provide a reproduction.

yaroslav-klimuk commented 8 months ago

@bent101 It requires an element with [vaul-drawer-wrapper] data attribute. Make sure to add this attribute.

bent101 commented 7 months ago

it worked thanks .-. shoulda read the docs