BobaBoard / issues

BobaBoard issue tracking
2 stars 0 forks source link

[BUG] In editor, window scrolls to top after pasting text #108

Open Candleja opened 2 years ago

Candleja commented 2 years ago

What's wrong?

When the editor has a post that is long enough to cause a vertical scrollbar on the browser, hitting ctrl+v to paste more text at the end of the post causes the window to scroll to the top of the page.

Expectation: the window should not scroll when text is pasted

Steps to reproduce

How to reproduce this isse:

  1. Start making a new post
  2. Paste enough content to make the post long
  3. Paste text (ctrl+v on windows) while the scrollbar is not at the top
  4. Observe that window has scrolled to the top

Screenshots

example of a post that is long enough to trigger this effect: Screenshot 2022-10-05 153835

Environment

Anything else?

Might be related to this? The comments have some suggestions for how to potentially address it.

https://github.com/zenoamaro/react-quill/issues/394