Component: textArea with pInputTextArea and AutoResize=true scroll issue #14003
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When using <textarea> with pInputTextArea and [autoResize]=true in a sidebar with a scrollbar there is an issue where the sidebar will get scrolled when the textarea is interacted with and a user tries to interact with other elements in the sidebar. See reproducer below.
Environment
Using windows 10 and latest version of Firefox.
Reproducer
https://stackblitz.com/edit/mffv5p?file=src%2Fapp%2Fdemo%2Finput-textarea-auto-resize-demo.html
Angular version
16.2.0
PrimeNG version
16.5.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.0
Browser(s)
No response
Steps to reproduce the behavior
Go to reproducer stackblitz.
The button will not be clicked and we will instead scroll up in the sidebar. User will need to scroll down manually and then click the button one more time which is annoying
Expected behavior
I expect to be able to interact with page elements in sidebar with a textarea even when textarea is focused.
The text was updated successfully, but these errors were encountered: