react-component / react-component/select

Select component doesn't render in Portal

Open
#1,058 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

The Select component, drop-down list doesn't render in a Portal causing issues with z-index and overflows when used inside pop-up modals.

https://react.dev/reference/react-dom/createPortal

By itself, on main page things mostly work, but with modals, tables and various elements that have z-index' set it causes issues.
React.createPortal exists for this to render list outside the dom-tree and have it properly overflow any element.
image

Contributor guide

No contributing guide indexed for this repository

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 Select dropdown inside a modal with z-index and overflow constraints, then review the React createPortal reference linked in the issue. Done means the dropdown renders outside the constraining DOM tree and remains usable in the reported modal, table, and layered-element scenarios.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.