Skip to content

[5.x]: Closing nested entry slideouts by clicking outside, scrolls to top of CKEditor field #388

@thupsi

Description

@thupsi

What happened?

Description

When editing a nested entry in a CKEditor field that is taller than the viewport, closing the slideout by clicking outside causes the page to scroll so that the top of the CKEditor field is visible.

Steps to reproduce

  1. Edit a CKEditor field that is tall enough as not to fit in the viewport.
  2. Add a nested entry to the bottom of the field.
  3. Open the entry slideout
  4. Close the slideout by clicking outside.

Expected behavior

The page scroll position does not change.

Actual behavior

The page scrolls so the top of the field is visible.

Craft CMS version

5.6.13

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions