Skip to content

Scrolling up when undo is pressed #3326

@brurnt

Description

@brurnt

Describe the Bug

When you press Ctrl+Z text formated as code block disappears for an millisecond and reappears. That causes the page to scrolls as far up as the page without code blocks would look like.

Steps to Reproduce

  1. Write some text with code blocks between
  2. Press Ctrl+Z

Expected Behaviour

Text should not disappear/Site should not move

Screenshots or Additional Context

Seite._Neue.Seite_.bearbeiten._.Wiki.Mozilla.Firefox.2022-03-12.23-00-24_Trim.mp4

Browser Details

Firefox 98.0 (64-bit) on Windows 10

Exact BookStack Version

v22.02.3

PHP Version

No response

Hosting Environment

Docker-compose on Raspberry Pi 4B with Raspberry Pi OS Lite

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions