themesberg / themesberg/flowbite-react

Dropdown header not accounted for in placement

Open
#972 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:bug: bug confirmed
Dominant language
TypeScript
Stars
2.1k
Forks
506
PR merge metrics
No merged PRs in 30d

Description

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Add a Dropdown.Header to a Dropdown component.
  2. On a screen where auto placement needs to be calculated, open the dropdown.
  3. Note that the main Dropdown.Item list is correctly calculated for, however the Dropdown.Header is not.

Current behavior

The Dropdown.Header component is being rendered outside the visible area.

Expected behavior

The entire Dropdown component should be controlled by the FloatingUI placement, ensuring the whole component is visible.

Context

image

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 with a Dropdown.Header on a screen where auto placement is recalculated, then trace the Dropdown component's FloatingUI placement handling. Done means the placement accounts for the entire Dropdown, including the header, so the component remains visible.

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.