-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Drawer disappear on iOS when using an input with bind:value #68
Comments
2024-04-30.17-12-08.mp4I can confirm same bug on Android Chrome. As shown in the video, this is caused by some bug that resets If users click out of the input field, styling is set to back to correct value. Note: This can't be debugged or reproduced on browser dev tools. Must be done in real or virtual device. In the video I am using chrome "inspect remote devices" feature. About severity: I agree with @tobiassern. This bug makes vaul-svelte totally unusable in any practical application where forms are used in the drawer/vaul. System info:
|
I tried to debug and fix this but couldn't even find out what might cause the bug. Feels like that I might not even be caused by this codebase but maybe something else like, svelte itself? Only thing was able to identify is that everytime there is keydown event on input field with I am more than happy to try to fix this and make PR as debugging this with real device is kinda slow and painful. @huntabyte Any insight or idea about this? Where should I pay attention? |
I think I found the solution. Could someone confirm if this fixes issue on your device? Sidenote: I still get some styling issues and drawer jumping around but I think those bugs are not related to this. I have to do more debugging on those and probably open new issue. Cause:The problem is caused by svelte reactivity. Everytime the binded variable Fix:Wrap everything inside Example:
Suggestion
|
Describe the bug
Drawer disappear on Safari on iPhone when having an input inside the drawer with a bind:value. I have added a minimal reproduction for this.
The same issue appears when using shadcn-svelte and the drawer component.
Video showing the reproduction of this bug
RPReplay_Final1710677900.MP4
Reproduction
Logs
No response
System Info
Severity
blocking all usage of vaul-svelte
The text was updated successfully, but these errors were encountered: