JedWatson / JedWatson/react-select
menuIsOpen is broken when menuPortal is set
Open
Nobody has claimed this yet.
issue/bug-confirmed
issue/reviewed
menu-bug
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
if you set menuIsOpen={true} and menuPortal, the menu won't be open at first: you must first manually open the Menu so it's always open
https://codesandbox.io/s/react-codesandboxer-example-kksi1?fontsize=14
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior in the linked CodeSandbox with menuIsOpen={true} and menuPortal enabled. Trace the menuIsOpen and menuPortal entry points to determine why the initial render does not show the menu; done means the menu is open immediately without manually opening it.
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
- 45/100