-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(text field): Long multiline text field - scrolled up on input #20255
Labels
area: cdk/text-field
help wanted
The team would appreciate a PR from the community to address this issue
P4
A relatively minor issue that is not relevant to core functions
Comments
Hi! Is anybody working on it? Otherwise, I could try to fix it if you don't mind. |
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Jan 13, 2025
When we have long multiline textfield and put cursor on almost an end (For eg. on 3rd last line) the scroll moves up to the top of textarea. This fix will use `blur` and `focus` in `scrollToCaretPosition` method Fixes angular#20255
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Feb 13, 2025
When we have long multiline textfield and put cursor on almost an end (For eg. on 3rd last line) the scroll moves up to the top of textarea. This fix will use `blur` and `focus` in `scrollToCaretPosition` method Fixes angular#20255
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 4, 2025
When we have long multiline textfield and put cursor on almost an end (For eg. on 3rd last line) the scroll moves up to the top of textarea. This fix will set the `scrollTop` `scrollToCaretPosition` method Fixes angular#20255
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 4, 2025
When we have long multiline textfield and put cursor on almost an end (For eg. on 3rd last line) the scroll moves up to the top of textarea. This fix will set the `scrollTop` in `scrollToCaretPosition` method Fixes angular#20255
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 4, 2025
When we have long multiline textfield and put cursor on almost an end (For eg. on 3rd last line) the scroll moves up to the top of textarea. This fix will `blur` and `focus` in `scrollToCaretPosition` method Fixes angular#20255
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 6, 2025
When we have long multiline textfield and put cursor on almost an end (For eg. on 3rd last line) the scroll moves up to the top of textarea. This fix will listen to scroll event and update the `scrollTop` in `resizeToFitContent` method Fixes angular#20255
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: cdk/text-field
help wanted
The team would appreciate a PR from the community to address this issue
P4
A relatively minor issue that is not relevant to core functions
Reproduction
https://monosnap.com/file/mKU40IcGQvhrgnhN9U3TLpAeouTj2g
Steps to reproduce:
Expected Behavior
The cursor and the letter just entered remain in the viewport.
Actual Behavior
The scroll moved up to the top of textarea
Environment
The text was updated successfully, but these errors were encountered: