-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
[TextareaAutosize] Resizing unstable #168
Comments
I am facing a relevant issue with the TextField component set to "multiline" (i.e. textarea) below: import React from "react";
import { TextField } from "@mui/material";
export default function EmptyTextarea() {
return (
<div>
<TextField
label="MUI Text Area"
multiline
variant="outlined"
inputProps={{ style: { resize: "vertical" } }}
/>
</div>
);
} The resizeable icon, which should appear at the bottom right corner as a result of the When inspecting the element, CSS says resize: none; Here is the sandbox: Changing |
This issue is a regression from mui/material-ui#40789. I've submitted a PR, mui/material-ui#41369, to address the problem of styles not being applied. |
Style issue is resolved. |
@ZeeshanTamboli thank you for fixing the style issue! Do you have any idea what the other issue is? i.e. regarding the glitchy drag in hyorimitsu's original post. Using your CodeSandbox from mui/material-ui#41369
This is what I see: current.mp4This is what the behaviour used to be like (the video shows 5.11.11 accidentally, but the last working is 5.15.10. Things broke in 5.15.11): expected.mp4 |
@nktnet1 I'm not sure what the problem might be, but I'll take a look. |
@ZeeshanTamboli You might already be aware, but just for your reference, I'd like to share my understanding of the bug related to resizing:
I apologize if there has been any misunderstanding. |
Thanks to @hyorimitsu for helping to pinpoint the cause of the issue. I've submitted a PR to address it - #189. |
Auto-sizing can be handled natively these days with |
Even if deprecated, it will likely take two years to remove it, the time it will take for browser support to propagate mui/material-ui#43720. So I'm reopening, there are no real alternatives in production today, and it's still a regression. If browser support propagates more rapidly, then the considerations would only be about backward compatibility, to give people time to migratre away. |
For those who are using |
Thank you for the fix! It is greatly appreciated! |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/modest-ellis-gzqt92
Steps:
{{ backgroundColor: "yellow" }}
fails to apply.Current behavior
15.5.11.mov
Expected behavior
15.5.10.mov
Context
No response
Your environment
npx @mui/envinfo
Search keywords: TextareaAutosize,resizing,styles,5.15.11
Search keywords:
The text was updated successfully, but these errors were encountered: