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
Using a fullWidth TextField and InputAdornment messes with the input width #8825
Comments
+1 for this. @oliviertassinari would it be possible to support |
@damianobarbati Have you tried doing so? How does it render? Do you see override generic enough we can move into the core components? |
@damianobarbati What happens if you wrap the See https://github.com/callemall/material-ui/pull/8504/files#diff-3d0c58268ffed10a2bd03ed4b6799ebbR53 for an example. |
@Jannis same with explicit
It slightly moved to the top overlapping the label but still on the left :) |
Ok, I thought it might be worth checking. :) |
If anyone's still struggling with this, this'll fix it for you.
|
@turbochef You should be able to remove this style in v4. It was fixed in #14988. |
When I use a TextField with an Adornment through the InputProps, if I set the width of the TextField component, either with fullWidth or with style property, the input field remains at the default width, only the root element takes the full space.
Expected Behavior
The input should receive the properties from the TextField even if I use the InputAdornment or not. Without it, the component renders ok.
Current Behavior
The root element changes its width, the input not.
Steps to Reproduce (for bugs)
Minimum example:
https://codesandbox.io/s/k2wn0166y7
Your Environment
The text was updated successfully, but these errors were encountered: