-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Body jumping to the top when you refocus (after losing focus) #2091
Comments
Good, the same problem happened in our project, we must make the .ql-editor dom can be scroll, we can not change the style of .ql-editor |
same question |
This happened to me too when I insert a link into toolbar and press Enter.
Here is my temporary solution that helps scrolling into the previous selection.
See more scroll options. Theme: Browsers: |
Is there any proper way to fix this? |
Notes: I find the solution here: https://github.com/quilljs/quill/issues/855 Versions: |
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏 |
Steps for Reproduction
Expected behavior:
Expect body ( scroll container ) to not jump at the top and set the cursor at the position it was before.
Actual behavior:
Body( scroll container ) jumps at the top but sets the cursor position at the correct range.
Platforms:
Browser: Chrome, Version 66.0.3359.139 (Official Build) (64-bit)
OS: MacOS El Capitan, 10.11.6
Version:
Quill version: 1.3.6
I think i have narrowed down the issue to this part of the code
This behaviour is also reproducible when you use setSelection(index) method.
The text was updated successfully, but these errors were encountered: