Skip to content

iOS keyboard covers inputs when using useDialog/useModalOverlayΒ #5926

Open
@JRS-Developer

Description

@JRS-Developer

Additional information: #6405 shows that this is not only limited to full screen dialogs, but modal experiences in general.

Provide a general summary of the issue here

we noticed that using the example from https://react-spectrum.adobe.com/react-aria/useDialog.html causes issues when creating a full screen dialog where an input is at the bottom of the dialog, it's impossible to see the input, the keyboard covers it, it only happens on iOS, old and new safari versions. we tried using radix dialog and it works properly so it seems some internal logic of react-aria.

Screen.Recording.2024-02-22.at.2.16.30.PM.mov

πŸ€” Expected Behavior?

the dialog should leave the browser to focus the input and "fix" by itself the keyboard covering.

😯 Current Behavior

the keyboard covers the input and it's impossible to scroll down, the dialog scrolls up when trying it.

πŸ’ Possible Solution

no sure

πŸ”¦ Context

No response

πŸ–₯️ Steps to Reproduce

  1. Open this codesandbox, it uses react aria and radix, same styling.
  2. Click on Open React aria dialog and select input at the bottom of the dialog and the keyboard will cover the input and it won't zoom correctly.
  3. Try the same with Radix and it won't happen

Version

3.32.1

What browsers are you seeing the problem on?

Safari

If other, please specify.

No response

What operating system are you using?

iOS

🧒 Your Company/Team

No response

πŸ•· Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    πŸ“‹ Waiting for Sprint

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions