emilkowalski / vaul

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

Virtual keyboard still pushes the drawer upward in some situations #255

Open Javad9s opened 5 months ago

Javad9s commented 5 months ago

This happens in Scrollable with inputs example https://codesandbox.io/p/sandbox/drawer-with-scale-forked-73f8jw?file=%2Fapp%2Fmy-drawer.tsx%3A1%2C1

I'm using chrome on android with Gboard.

Reproduction steps

  1. Open https://73f8jw-3000.csb.app/
  2. Open Drawer
  3. Align second input with the top of virtual keyboard
  4. Tap on input

https://github.com/emilkowalski/vaul/assets/52538597/64897a5d-6c6b-4cc5-8de2-36b0f0939ace

Additional Context

If this native behavior by browser (pushing the drawer upward) is not breaking any core functionality, it would be nice to expose an option to disable this push protection anyways.

Khaan25 commented 5 months ago

I also have this problem! If I have got an input box and it's EMPTY, note that. I can click inside the input and drag up and down to close. I can't focus on the input itself!

Sometimes, it happens the same on inputs with VALUE!

edit: It's fixed in 0.9.0

bitdictator commented 4 months ago

I am experiencing this issue on v0.9.0.

aakashbhadana commented 4 months ago

I encountered the same problem. Also, after the virtual keyboard opens it takes a moment before drawer readjust giving a unresponsive kinda feel.

https://github.com/emilkowalski/vaul/assets/50946719/298d7c60-cdd5-410d-b76c-a5c8a5529b4e

satoshi-cyber commented 4 months ago

I am experiencing this issue on v0.9.0. in PWA mode is even worse

pandas9 commented 4 months ago

it becomes even worse if you have to add scrolling inside

lopermo commented 3 months ago

I encountered the same problem. Also, after the virtual keyboard opens it takes a moment before drawer readjust giving a unresponsive kinda feel.

RPReplay_Final1708161372.MP4

Same here

alexixx commented 1 month ago

Same. Fix pls or give the posiible to disable this

Ian-Matthew commented 4 weeks ago

Encountering same issue

eposha commented 1 week ago

Same issue