themesberg / themesberg/flowbite

Closing modal keeps backdrop

Open
#963 5 comments 3 reactions 1 assignee View on GitHub

@zoltanszogyenyi is already working on this.

Since Sep 17, 2024.

bug
Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When I close a modal using javascript, the backdrop remains.

To Reproduce
Steps to reproduce the behavior:

  1. Close a modal using javascript

Expected behavior
The modal should completely close.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Fedora 40
  • Chrome
  • 128.0.6613.137

Additional context
Here's my code: https://gist.github.com/alec-jensen/80a7b28aa8302cb36fa1a2a62a581eee

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.