-
Notifications
You must be signed in to change notification settings - Fork 351
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
[Bug]: All interactive elements require double-click after closing drawer by releasing on mobile #775
Comments
Hello there! |
@Saeid-Za Which device did you test with? I am able to reproduce the issue on the website with my Android phone (Google Pixel 8 Pro) in the Chrome browser :) |
I have the exact version But I can't reproduce the issue, could you please check if an overlay is present when dragging the drawer down? |
I have OS: Android 14; Build/AP22A.240905.003. Not sure if that changes anything 🤔
It's very weird - I tried inspecting on my phone and if I inspect the element I want to click before clicking it, after closing the drawer, the issue does not happen. It does happen if I do not inspect the element I want to click before clicking it. It does not seem like the overlay is present, but I'm not sure if that is because of the inspecting thing or not. I also tried adding an event listener for click events on the document and the click on an element after closing the drawer does not trigger at all 😕
Yes, mobile only. I also tried to test on another device, a Google Pixel 6 Pro with same build and Chrome version, and the issue also happens on that device. |
Update: The bug is also happening on iPhone/Safari: unovue/vaul-vue#66 (comment) |
@Saeid-Za Do you have any idea of how to fix this? :) |
Reproduction
https://www.shadcn-vue.com/docs/components/drawer.html
Describe the bug
After closing the drawer component by dragging it down and releasing, the first click on any interactive element on the page is not registered. It requires a second click to actually trigger the element's action. It does only seem to happen on my mobile device.
Test flow:
System Info
Contributes
The text was updated successfully, but these errors were encountered: