themesberg / themesberg/flowbite

Dropdown are not being closed when pressing `ESC`

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

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:

  1. Go to https://flowbite.com/docs/components/dropdowns/#dropdown-example
  2. Click on the dropdown
  3. Press ESC

Expected behavior
Dropdown being closed

Screenshots
n/a

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome
  • Version 135

Additional context

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.