Prevent page scroll when opening a multiselect with many items

Created on 14 June 2024, 16 days ago
Updated 28 June 2024, 2 days ago

Problem/Motivation

When a multiselect with many items is opened the viewport may scroll as the focus is transferred to the .multiselect-dropdown__list. This happens if the list contents would land outside the viewport even though the .multiselect-dropdown__scroll is fixed in height.

Proposed resolution

Focus the .multiselect-dropdown__scroll on opening, instead of .multiselect-dropdown__list.

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States benabaird

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024