themesberg / themesberg/flowbite
Dropdown are not being closed when pressing `ESC`
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Hello, at the best of my knowledge, this is not a duplicate
I expect that Dropdowns are closed when pressing ESC, as it happens with Tooltips and Modals
To Reproduce
Steps to reproduce the behavior:
- Go to https://flowbite.com/docs/components/dropdowns/#dropdown-example
- Click on the dropdown
- Press ESC
Expected behavior
Dropdown being closed
Screenshots
n/a
Desktop (please complete the following information):
- OS: macOS
- Browser Chrome
- Version 135
Additional context
- daisyui does not close dropdowns
- bootstrap does https://getbootstrap.com/docs/5.3/components/dropdowns/#accessibility
- Tailwind Plus does https://tailwindcss.com/plus/ui-blocks/application-ui/elements/dropdowns
- #440
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 with the dropdown example at the linked Flowbite documentation URL and inspect how keyboard events are handled, comparing the behavior with the tooltips and modals mentioned in the report. Done means an open dropdown closes when ESC is pressed, matching the expected behavior described and the cited Bootstrap and Tailwind Plus examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, tailwindcss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100