-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[material-ui][TextField] Text Fields are suddenly overflowing when using versions newer than 6.0.0-alpha.9 #43185
Comments
What are you wrapping these TextFields in? I am asking because we had some breaking changes in the |
the TextFields are wrapped in divs with a |
Here's the CodeSandbox of the TextField overflowing the div: https://codesandbox.io/p/devbox/musing-feather-qrft2v Edit: Play with the version of |
Is there an update on this? |
@EliasVal, the TextFields aren't rendering correctly in the CodeSandbox link you shared. Here's what I see: Additionally, there are many errors and warnings in the console. |
@ZeeshanTamboli What is incorrect about the rendering? other than the fact that the TextField is overflowing the container... |
@EliasVal, I’m not understanding how TextField is overflowing the container based on the image above. Which container? Can you clarify? Also, you mentioned here that you included everything similar to the actual project, but I don’t see it. It would be better to simplify and minimize the reproduction and not run the whole project. This StackBlitz sandbox template may be a good starting point. |
@ZeeshanTamboli, I didn't reproduce the entire project, I reproduced the TextField component as closely as possible to my project. If you check the CodesandBox again, you'll see I marked the containing div with a red border, and you'll see that the TextField is overflowing said div. |
This issue arose due to the change in #42283, where I'll mark it as a regression because it worked before. The TextField should never overflow its container, regardless of the container's width. Also I believe the previous use of |
Well, then it seems that the current solution is to edit the root theme and add back the |
@EliasVal I think it's a bug. Your solution is a workaround. |
Created PR #43364 to fix it. |
Steps to reproduce
Link to live example: (required)
Steps:
v6.0.0-alpha.9
Current behavior
Incorrect TextField sizing (
v6.0.0-alpha.10
+)Expected behavior
Correct TextField sizing (
v6.0.0-alpha.9
)Context
No response
Your environment
npx @mui/envinfo
Search keywords: overflowing, alpha
The text was updated successfully, but these errors were encountered: