BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.08k stars 1.47k forks source link

Checking a Checkbox Triggers Scrolling to Caret Location #3706

Open hinder90 opened 3 years ago

hinder90 commented 3 years ago

Current behavior

In dual-pane view, checking a checkbox will cause the preview pane to immediately scroll to wherever the caret is located in the markdown editor view.

Expected behavior

When checking a checkbox in the preview pane, it shouldn't actually move.

Steps to reproduce

Preconditions:

  1. In the markdown pane either place the caret or select the text at any location in your document.
  2. Scroll to a checkbox in the preview pane that requires scrolling away from the caret's location.
  3. Check the checkbox.

The preview pane will then jump to wherever the caret is located. (If you do not place the caret after opening the document, it will be at the beginning of the document.)

Environment