Skip to content

Toast on top is hidden when virtual keyboard on safari mobile browser is open #906

@naval200

Description

@naval200

Do you want to request a feature or report a bug?

bug

What is the current behavior?

The virtual keyboard on safari (in a input box) mobile browser pushes the screen elements outside the screen (to top). If we display an error on top, the toast is hidden.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:

  1. create a form with input box
  2. open it on mobile safari browser on iphone
  3. add a button, clicking which displays a toast on top
  4. the toast is displayed above the visible area of the screen

What is the expected behavior?

The toast should be visible at top.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Iphone, safari mobile browser

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions