-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Link Dialog - Cursor jumps to end when typing in middle of URL #3839
Comments
For more information on our current understanding: Short version:
Long version: There are four things at play here:
The problem is that
Now, when the This means that the Next, Solution: The solution that @tg-ephox has proposed here is just moving the |
Interestingly, I tried to make a
Note, I wasn't testing the actual value yet. This test fails, but not for the expected reason. It actually puts the letters in the right place (even though doing it manually does not and yields this issue/bug with the cursor jumping), but the test returns There is this unrelated cypress issue which strongly suggests that @youknowriad Can you see something that I'm doing wrong here? Have I misunderstood how to handle typing so that it updates the caret properly? |
@ephox-mogran I think you're probably right here. Granted, cypress doesn't do well when it comes to text interaction. I'm not aware of a better alternative though. We should use cypress for what it's best at, and see if these issues get fixed on their end. |
Should we log a bug? Although that comment on that issue suggested there already is one? I'm just not sure which one the comment was talking about. |
Agree, the comment there suggest a similar bug but I'd say worth a comment explaining we're having an issue as well :) |
Issue Overview
If I try and type in the middle of the UrlInput my cursor jumps to the end
Steps to Reproduce (for bugs)
Expected Behavior
Cursor position remains in middle of text where typing
Current Behavior
Cursor position jumps to end when typing resumes in middle of text
Possible Solution
Moving this code which forces the slot to re-render into the render method of fill solves this problem however we're not sure this won't have repercussions...
Screenshots / Video
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: