Textarea: AutoResize not working if the value is changed while textarea is not visible #4510
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Autoresizing of the TextArea does not function correctly under two specific conditions:
When the TextArea is displayed after its value has been assigned, the autoresize feature fails to work as expected.
If the TextArea is located outside the viewport and its content is programmatically changed, the resizing behavior does not function correctly.
To illustrate this issue, consider the following example:
https://stackblitz.com/edit/gvf5ux?file=src%2FApp.vue
Reproducer
https://stackblitz.com/edit/gvf5ux?file=src%2FApp.vue
PrimeVue version
3.34.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
I expect the autoresize functionality of the textarea to work correctly as soon as it is displayed or changed.
The text was updated successfully, but these errors were encountered: