themesberg / themesberg/flowbite-react
Add onClick event on the dropdown component
Open
Nobody has claimed this yet.
:rocket: enhancement
- 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
Summary
currently only the items in the dropdown have onClick methods It would be nice if the dropdown button also has a onClick event
Context
I want to trigger something when the dropdown button is pressed,
if I have a something like this
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 locating the Flowbite React dropdown component and inspect how onClick is currently handled for dropdown items and the button. Reproduce the reported wrapper onClick and autodismiss behavior, then verify that a button callback works without breaking dismissal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100