emilkowalski / vaul

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

Drag to close fails when started from an input #466

Open jasongerbes opened 1 month ago

jasongerbes commented 1 month ago

Using the Inputs example on iOS, dragging down to close the drawer fails when the drag gesture is started on an input element.

Current behaviour The drawer moves down slightly before returning to its original position and focusing the input field.

Expected behaviour The drawer should be closed.

https://github.com/user-attachments/assets/daf20b8e-0fb4-4e8a-84f0-1f767d81bc54

SHLcy commented 1 month ago

same here, using the exact code