quill icon indicating copy to clipboard operation
quill copied to clipboard

Clicking 'Done' when adding hyperlink, scrolls editor to top

Open therahl opened this issue 10 years ago • 5 comments

When adding a link to the text editor, the editor will scroll to the top. Expected behavior is for the editor to maintain scroll position when a link is added.

Steps for Reproduction

  1. Visit quill.com
  2. Scroll to bottom of text editor.
  3. Add link on the last line by highlighting some text.
  4. Observe the editor scrolls to top when clicking 'Done'

Platforms Behavior observed in Chrome and Safari

therahl avatar Aug 09 '16 21:08 therahl

What version of Quill are you using?

jhchen avatar Aug 10 '16 04:08 jhchen

it's not quill.com, @therahl. it's quilljs.com

the editor scrolls up because of the dom object in focus (class "ql-link-tooltip") get different values for "top" css property.

khera-shanu avatar Aug 10 '16 06:08 khera-shanu

Quill version is 0.20.1, will upgrading to the latest resolve this issue for me?

therahl avatar Aug 12 '16 18:08 therahl

You can test 1,0 beta: http://beta.quilljs.com/

benbro avatar Aug 12 '16 18:08 benbro

Thanks for the link @benbro. Looks like upgrading will solve this issue for me. Closing issue. Thanks everyone!

therahl avatar Aug 12 '16 19:08 therahl