-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
After pressing the enter key, focus jumps to the top of the page. #1407
Comments
I am also experiencing the issue with lost focus on enter key presses. It started occuring in Specifically and there is an Thanks for your efforts! |
I think you're on to something there. We've had a few people with laptops experience this, but most with laptops or desktops have no issue. Until I read this thread yesterday I couldn't reproduce it on my desktop. This morning I learned how to set the user agent in Chrome, I chose iPad to make it appear mobile, and this trips the issue consistently. I've tested both in our application and at http://suneditor.com/sample/index.html I'm not convinced it's the user agent necessarily, though. Perhaps something else in this:
EDIT: OK, now I'm sure it's the touch points test. It's being flagged as a mobile device on our laptops that support touch screen input. |
The laptop I'm experiencing this issue on has a touchscreen - so touch points theory hold up. |
same problem, but solved by locking to v2.45.1 |
Is there any progress here? Unfortunately, we upgraded to > 2.46.0 to fix a different bug, so feels wrong to rollback to undo that. |
This is code added due to a composition event issue with the IME input device on mobile. |
@andylwelch @alexlaw-leo @malworthy @BestLemoon @jreynolds12 |
@JiHong88 Thank you! |
@JiHong88 I still have this issue even with 2.47.0 version, it seems to be related to touch devices. When I press enter focus still goes on the top of the page and I can't go on writing. Pressing enter should just add a line. |
Hi @JiHong88, I also have the same problem. I am attaching a video where I press ENTER and then see the focus disappear and via console, I see that the focus is on another element. screen-recorder-wed-oct-02-2024-15-09-12.webm |
Details
After pressing the enter key, focus jumps to the top of the page.
To Reproduce
Can be replicated in the options sample: http://suneditor.com/sample/html/options.html
Click into the editor. Press enter key. Focus will go to the top of the screen.
Only happens in v2.46.3 of Suneditor, Issue not present in v2.45.1
Expected behaviour
For focus to stay in the control after pressing the enter key
The text was updated successfully, but these errors were encountered: