Skip to content

Interaction with dropdown inside a modal makes modal to jump to top #2700

@Eizens

Description

@Eizens

Bug Report

The following setup is used:
Modal that contains a Form with a long content. The content has one or more Dropdown elements.
When changing / selecting a dropdown value the modal content jumps to the top.

Steps to reproduce

  1. Click button to open a modal.
  2. Ensure that dropdown is below initial viewport (so that not entire modal is fully visible).
  3. Scroll down to the dropdown.
  4. Interact with dropdown (click and select any value).

Expected result

No scrolling or jumping happens.
Works fine with 2.8.8:
https://jsfiddle.net/zbvhwqm9/1/

Actual result

Modal instantly jumps/scrolls (no animation) to the top.

Testcase

https://jsfiddle.net/zbvhwqm9/ (2.9.1)
https://jsfiddle.net/fd34qy61/ (2.9.2)

Screenshot

gif

Version

2.9.1

Metadata

Metadata

Assignees

Labels

type/bugAny issue which is a bug or PR which fixes a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions