-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Deprecate TextareaAutosize #43720
Comments
Auto-sizing is fine these days with Demo: https://jsfiddle.net/as0r6evg We can now deprecate this component. |
I have concerns about backwards compatibility. The CSS property mentioned here is currently only available in a new chrome browser version. I don't think it's the right time to deprecate this now. Here is an overview of the support |
Support is poor currently yes, but I was told by someone close with CSS that it's expected to be well-supported in the next few months, before our new Textarea component (following our new API design plans) would be roadmapped. So in terms of planning our v1 in late Q3 this year, it makes sense to think about the native implementation. |
👍
|
One thing I'm missing with the CSS only implementation: how's do we do max line count? Using |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
What's the problem? 🤔
Today's implementation of TextareaAutosize depends, more or less, on option 1 of https://stackoverflow.com/questions/454202/creating-a-textarea-with-auto-resize, it's more complex because it also supports
maxRows
andminRows
.Looking at https://github.com/tkent-google/explainers/blob/main/form-sizing.md, it looks like a native solution for this component is coming to the platform. Also see https://twitter.com/jh3yy/status/1710398436917321799.
It looks like we will no longer need this component in a year or two. Time to think of its deprecation path?
Search keywords:
Search keywords:
The text was updated successfully, but these errors were encountered: