Skip to content

Regression: Editor jumps to last cursor if you toggle a task-list item  #1802

@fxha

Description

@fxha

Description

The preview editor jumps to the last cursor if you toggle a task-list item if the editor has a scrollbar.

Steps to reproduce

Copy the example below and fill [...] with task-list items so you have a scrollbar and the normal list below is not visible when toggle the checkbox.

  1. Set cursor via mouse click behind foobar.
  2. Scroll to top (the bullet list should not be visible) and don't click anywhere (e.g. use scroll-wheel).
  3. Toogle a task-list checkbox.
- [ ] foo
- [ ] foo
[...]
- [ ] foo

---

- bar
- bar
- bar
- bar
- bar
- bar
- foobar
- bar


Expected behavior:

The checkbox should be toggled.

Actual behavior:

The checkbox is toggled and the editor scroll foobar into screen.

Versions

  • Mark Text: v0.16.0-rc2
  • Operating system: all

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions