mui / mui/material-ui

[TextField] flickering when move focus between text field on mobile browser

Open
#33,414 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: text field
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 😯

i created a form for my project and it's working perfectly on desktop but when I switch to my android, flicker happened. I thought my conditional styling somehow affects this behavior then i created new clean project to test it without any conditional styling, and flickering still happened on two phones that I've tested.

Android Chrome Version: 103.0.5060.70

here is the screen record:
Screenrecorder-2022-07-07-02-45-26-169

Expected behavior 🤔

no flicker

Steps to reproduce 🕹

Steps:

  1. click the text input until the on screen keyboard shown
  2. scroll to the bottom of page and make sure text input still on screen
  3. click other text input to see the flickering
Context 🔦

No response

Your environment 🌎
npx @mui/envinfo
 System:
    OS: Windows 10 10.0.19044
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.13.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.19041.1266.0), Chromium (103.0.1264.44)
  npmPackages:
    @emotion/react: ^11.9.3 => 11.9.3
    @emotion/styled: ^11.9.3 => 11.9.3
    @mui/base:  5.0.0-alpha.88
    @mui/material: ^5.8.7 => 5.8.7
    @mui/private-theming:  5.8.6
    @mui/styled-engine:  5.8.7
    @mui/system:  5.8.7
    @mui/types:  7.1.4
    @mui/utils:  5.8.6
    @types/react:  18.0.15
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript:  4.7.4

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

Start at the TextField entry point and reproduce the focus transition on Android Chrome using the listed steps, including scrolling with the keyboard visible. Compare the behavior with desktop browsers and verify that moving focus between fields no longer flickers on the reported mobile setup.

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.