-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[material-ui][InputBase] Text cursor jumps several lines up when inserting text fragment with new line at the end. #45148
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
Comments
Thanks for the report @Lastik! I can confirm this is a bug. It seems to be present in v5 as well as v6. I added the |
Hi @DiegoAndai I would like to work on this issue. |
Wanted to take on this |
Hi @yermartee, go ahead! Feel free to let me know if you need any help. Thanks in advance. @suhel4code, thanks for the interest; I will assign this one to @yermartee, as he asked first. I'll gladly guide you in other |
Hi @DiegoAndai I've opened a PR for this issue, please review. Thanks in advance. |
A new similar report has been made: #45277. Let's try to close both at the same time. They look closely related although slightly different (hence I'm not closing the other one as duplicate just yet). |
@Lastik @DiegoAndai Would you please share the video/screenshot of where you're seeing this issue? |
Hi @Lastik , I'm interested in contributing to this issue. Could you please assign it to me? Looking forward to working on it! |
Hey @himani-mehra and @Ashish-619, this issue is already being worked on. I hope you can find other issues you're interested in working on. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
Steps to reproduce
Steps:
InputBase
text field. Your text cursor should be at the new empty line in the very end of the field.Current behavior
You should see that text cursor is not at the last empty line of the input anymore.
Expected behavior
Text cursor should still be at the last empty line of the input, because we are inserting to the end of it.
Context
This is basic usage of the component without any complex configurations or customizations.
Your environment
npx @mui/envinfo
Search keywords: InputBase, material-ui, multiline, text cursor
The text was updated successfully, but these errors were encountered: