JedWatson / JedWatson/react-select

Scroll options become misaligned in the menu pane

Open
#4,518 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

menu-bug
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

Thanks for using react-select!

Are you reporting a bug or runtime error?

This is a bug in v4.3.0.

Sandbox which I managed to replicate the issue in https://codesandbox.io/s/react-select-bug-24xcg

When scrolling through the open menu, the options list can become misaligned with the top/bottom and leaves big chunks of whitespace. When hovering over this whitespace, you can see that the menu item hover and click interactions still work, but can be confusing and looks broken.

This occurs frequently within our application.

Replicated in the codesandbox

https://user-images.githubusercontent.com/38767071/112183236-f5adf980-8bf5-11eb-84f1-d3f7b4501c3e.mov

Screenshot 2021-03-23 at 16 12 29

Occurs within our application

https://user-images.githubusercontent.com/38767071/112183182-eaf36480-8bf5-11eb-92ae-b28b164c55f9.mov

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the linked CodeSandbox and compare the menu behavior with the attached videos and screenshot. Trace the scrollable options list from there; done means scrolling keeps the options aligned with the menu boundaries, without whitespace that receives misleading hover or click interactions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.