Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
josuasimatupang opened this issue Apr 18, 2024 · 2 comments

Comments

@josuasimatupang
Copy link

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

This is my code:
image

image

@joaom00
Copy link
Contributor

joaom00 commented Apr 21, 2024

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

@rahXephonz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants