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

Textarea auto-resize set height=0 in TabPanels #17371

Open
1 of 4 tasks
theofidry opened this issue Jan 13, 2025 · 0 comments
Open
1 of 4 tasks

Textarea auto-resize set height=0 in TabPanels #17371

theofidry opened this issue Jan 13, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@theofidry
Copy link

Describe the bug

There is cases where using a TextArea with auto-resize results in the text area being set at height=0.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/uguuxzyv?file=src%2Fapp%2Ftabs-basic-demo.html

Environment

Nothing special (see stackblitz)

Angular version

19.0.7

PrimeNG version

v19

Node version

v22

Browser(s)

Chrome 131.0.6778.265 (Official Build) (arm64); Firefox 134.0 (aarch64)

Steps to reproduce the behavior

As per the stackblitz, using a textarea with auto-resize within a if condition or for loop results in the height of the textarea to be set to 0, regardless of the initial row size set.

Note that editing the value corrects it afterwards, so it looks like the resize event is triggered too early somehow.

Expected behavior

The auto-resize to set to the correct height.

@theofidry theofidry added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 13, 2025
@theofidry theofidry changed the title Textarea auto-resize is not working as expected in TabPanels Textarea auto-resize set height=0 in TabPanels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant