JedWatson / JedWatson/react-select

menuPosition property doesn't seem to be changing anything in menu position behavior

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

Nobody has claimed this yet.

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

Description

version: 5.7.2
live example: https://codesandbox.io/s/react-select-vertical-position-yzdm33?file=/src/Dropdown.js

Expected behavior:
when setting menuPosition property to either "auto" or "top" the menu would open accordingly to the rule.

Observed behavior:
menu always opens in "bottom" position.

Notes:
Provided example shows the exact layout and its style we use on our project. Our client requested that dropdowns would open to the top when menu being opened is close to the bottom of the filters box, so that opened menu would not hide under "Apply" and "Reset" buttons box and not resize the filters box.

Please tell us if there is more information that needs to be provided.

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 behavior in the linked CodeSandbox using react-select 5.7.2, testing menuPosition values of "auto" and "top" near the bottom of the filters box. Done means the menu follows the selected positioning behavior, opens above when appropriate, and does not hide the Apply and Reset buttons or resize the filters box.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.