Skip to content

[Bug Report]: Weird behaviour while editing a page if template sidebar is closed #3186

@quaintdev

Description

@quaintdev

Describe the Bug

While using markdown editor the cursor if suppose is on line 9 and we are trying to do backspace it ends up editing line 8. This happens when I close the template sidebar.

Steps to Reproduce

  1. Create new page
  2. Choose template
  3. Start editing text
  4. Close the sidebar
  5. And now cursor is at one line but ends up editing other line (this especially happens if you are trying to navigate using arrow keys, backspace, delete.)

Expected Behaviour

The cursor should not change position when the template sidebar is closed and should only edit the line or text that it is on.

Screenshots or Additional Context

No response

Exact BookStack Version

v21.12.1

PHP Version

No response

Hosting Environment

Hosting on raspberry pi 2 using docker.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions