themesberg / themesberg/flowbite-react
Dropdown.Item - MouseEvent<HTMLElement> is not passed through onclick
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
Because the MouseEvent is not passed through dropdown items, scenarios such as stopping propagation when the dropdown is descendant of another clickable item cannot be supported.
By contrast, NavbarLink passes the event through:
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 in packages/ui/src/components/Dropdown/DropdownItem.tsx at lines 52-55 and compare its onclick handling with packages/ui/src/components/Navbar/NavbarLink.tsx at lines 38-41. Verify the Dropdown.Item callback receives the MouseEvent, including for stopPropagation use cases, and confirm the relevant component behavior after the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100