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

Display glitch when using multiline in TextField #44988

Open
googol7 opened this issue Jan 10, 2025 · 2 comments
Open

Display glitch when using multiline in TextField #44988

googol7 opened this issue Jan 10, 2025 · 2 comments
Assignees
Labels
browser: Safari bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module!

Comments

@googol7
Copy link

googol7 commented Jan 10, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: https://mui.com/material-ui/react-text-field/#multiline with iOS simulator Version 16.0 (1038)
  2. Click into the first example, so that the TextField get's the focus
  3. Click outside so that the TextField looses the focus

Current behavior

With focus

CleanShot 2025-01-10 at 11 33 48@2x

The label "Multiline" is striken through.

Without focus

CleanShot 2025-01-10 at 11 34 23@2x

There's a gap now.

Expected behavior

With focus

CleanShot 2025-01-10 at 11 34 53@2x

Without focus

CleanShot 2025-01-10 at 11 35 33@2x

Context

No response

Your environment

MUI v.6.3.1
iOS simulator Version 16.0 (1038) with Mobile Safari 18

Search keywords: TextField, multiline

@googol7 googol7 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 10, 2025
@zannager zannager added the component: text field This is the name of the generic UI component, not the React module! label Jan 13, 2025
@mnajdova
Copy link
Member

mnajdova commented Jan 15, 2025

I can reproduce this on latest Safari on mobile. We'll look into it to see if we can quickly fix it.

@mnajdova mnajdova added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 15, 2025
@mnajdova mnajdova assigned mnajdova and unassigned DiegoAndai Jan 15, 2025
@mnajdova
Copy link
Member

The behavior comes from the transitions, but I am not sure why it is happening only on the multiline demo. What's even more weird is that if I just render this demo, e.g. export it via sandbox, the issue is not happening. It has to be a browser bug in some way. Anyway, I would recommend for fixing ti locally to disable the legen'd transition, using something like this:

"& legend": {
  transition: "unset",
},

Either on a theme level, or directly on the TextField component, e.g.: https://codesandbox.io/p/sandbox/little-glitter-w3mxsd?file=%2Fsrc%2FDemo.tsx%3A21%2C9 You can try this demo on the docs to validate that the first textfield works as expected, while the other don't (on the Sandbox all of them work as expected on my phone 🤷‍♀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: Safari bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

4 participants