primeng icon indicating copy to clipboard operation
primeng copied to clipboard

InputTextarea: Autoresize on modal create a scroll issue

Open AnTiiK opened this issue 1 year ago • 2 comments

Describe the bug

When a pInputTextarea is in a modal with a scrollbar, the modal is scrolled to top when the textarea is unfocused

Environment

See the repro

Reproducer

https://stackblitz.com/edit/6vrst7?file=src%2Fapp%2Fdemo%2Fdynamic-dialog-example-demo.html,src%2Fapp%2Fdemo%2Fproductlistdemo.ts

Angular version

17.0.5

PrimeNG version

17.3.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Open repro
  2. Click on "Select a product"
  3. Scroll down and focus textarea
  4. Click outside the textarea
  5. The modal scroll to top

Expected behavior

Nothing scroll must be triggered after the textarea is unfocused

AnTiiK avatar Jan 03 '24 11:01 AnTiiK

I think it's same as https://github.com/primefaces/primeng/issues/14003

stephanebouget avatar Jan 10 '24 14:01 stephanebouget

This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] avatar May 10 '24 00:05 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding!

github-actions[bot] avatar May 17 '24 00:05 github-actions[bot]