Inputfeat(Input - Textarea): Let the area grow with flexbox #28912
Labels
area: material/form-field
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
Feature Description
The
textarea
should grow flexible depending on the what space is available.I'm aware that there exists the directive
cdkTextareaAutosize
but this will let thetextarea
grow depending on the input. Which I don't want to have since it grows infinitely and might be at the starting place too small.Use Case
The
textarea
should stretched over the whole height and not only to a small part - which is in fact only one line. I want to have some kind of dynamic approach - depending where I place the component.Sample could be seen on Stackblitz.
I'm aware that I could style with inner CSS classes like I've asked on Stackoverflow. But this seems to fragile.
The main reason for this use case: I cannot use a regular
textarea
since it won't handlemat-errors
smoothly forforms
.The text was updated successfully, but these errors were encountered: