emilkowalski / vaul

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

Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? #325

Open josuasimatupang opened 2 months ago

josuasimatupang commented 2 months ago

I keep getting this warning error when I try to open the Drawer? image

This is my code: image

image

joaom00 commented 2 months ago

Probably your CarouselItem needs to forward ref because of asChild prop in Drawer.Trigger

rahXephonz commented 1 month ago

I think this is not come from vaul its come from your carousel