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

[Bug]: Drawer Input is behind keyboard on mobile devices #961

Open
2 tasks
pandikapinata opened this issue Dec 15, 2024 · 3 comments
Open
2 tasks

[Bug]: Drawer Input is behind keyboard on mobile devices #961

pandikapinata opened this issue Dec 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@pandikapinata
Copy link

Reproduction

Try use Drawer Component with form inside it, then open on mobile devices, you can see the keyboard cover your form input

Describe the bug

I've tried to use Drawer on my web, but apparently has issue like raised on here:
shadcn-ui/ui#2849
emilkowalski/vaul#294

Preview (https://www.shadcn-vue.com/docs/components/drawer.html#responsive-dialog)

shadcn-vue

Expected Outcome (https://ui.shadcn.com/docs/components/drawer#responsive-dialog)

Shadcn-ui

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz
    Memory: 3.29 GB / 15.69 GB
  Binaries:
    Node: 22.4.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @vueuse/core: ^10.11.0 => 10.11.0
    radix-vue: ^1.9.11 => 1.9.11
    vue: ^3.4.0 => 3.4.31

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@pandikapinata pandikapinata added the bug Something isn't working label Dec 15, 2024
@artyom12211
Copy link

+1.
It breaks only in safari browser. I hope you can handle that.

@TechNerdsUzi
Copy link

TechNerdsUzi commented Jan 3, 2025

Add this in your html meta tag like this
interactive-widget=resizes-content

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, interactive-widget=resizes-content" />

It works for me on react

@joshwaaaah
Copy link

Add this in your html meta tag like this

interactive-widget=resizes-content

`<meta name="viewport"

content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, interactive-widget=resizes-content" />`

It works for me on react

I think this might have accessibility implications unfortunately. In doing this I believe we'd be disabling the ability to zoom, which is a WCAG criterion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants