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 triggers scroll jumps #17376

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

Textarea auto-resize triggers scroll jumps #17376

theofidry opened this issue Jan 13, 2025 · 1 comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Milestone

Comments

@theofidry
Copy link

theofidry commented Jan 13, 2025

Describe the bug

When editing a text area, based on the content, it may trigger a scroll jump even if the textarea size did not change.

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/imjgwiqc?file=src%2Fapp%2Finput-textarea-auto-resize-demo.html

Environment

macOS 14.6.1 (23G93)

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

  • scroll down the text area
  • start editing a line (the change can result in an additional line being added or not, it happens in both cases)
  • the window jumps back to the top

Expected behavior

I do not expect the window to jump back to the top but rather stay in place.

@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
@mertsincan mertsincan added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 16, 2025
@mertsincan mertsincan added this to the Future milestone Jan 16, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Jan 16, 2025
Copy link

Due to PrimeTek's demanding roadmap for PrimeNG, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
Status: Review
Development

No branches or pull requests

2 participants