Skip to content
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

Inputfeat(Input - Textarea): Let the area grow with flexbox #28912

Open
leomayer opened this issue Apr 19, 2024 · 0 comments
Open

Inputfeat(Input - Textarea): Let the area grow with flexbox #28912

leomayer opened this issue Apr 19, 2024 · 0 comments
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

Comments

@leomayer
Copy link

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 the textarea 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.
Bildschirmfoto vom 2024-04-17 17-22-02

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 handle mat-errors smoothly for forms.

@leomayer leomayer added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Apr 19, 2024
@amysorto amysorto added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion area: material/form-field and removed needs triage This issue needs to be triaged by the team labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants