mui / mui/material-ui

[Popover] Changes position when typing in a text field in iOS Safari

Open
#29,887 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component: Popover scope: popup type: bug
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Current behavior 😯

When typing in the text field the Popover goes up

https://user-images.githubusercontent.com/51082730/143415025-a621e9cf-f8b7-43ab-a638-738823979f1f.MP4

Expected behavior 🤔

It should stay on the anchor position I set

Steps to reproduce 🕹

Steps:
Example: https://codesandbox.io/s/basicmenu-material-demo-forked-8dyxn?file=/demo.tsx

  1. Open https://8dyxn.csb.app/ in iPhone
  2. Click on textfield
  3. Type something

Also try with safari address bar on bottom position

Context 🔦

I want to add a TextField in the dropdown menu, I tried to use Menu and Popover, but I got the same issue.

Your environment 🌎
Tech Version
Material-UI v5.2.0
React v17.0.2
browser Safari
device iPhone

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on an iPhone in Safari using the linked CodeSandbox example, following the listed steps for the text field and bottom address bar. Compare the Popover position before and while typing; done means it remains at the configured anchor position without shifting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.