saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.24k stars 1.31k forks source link

bug: closed modal still focusable #2876

Closed Atmos4 closed 7 months ago

Atmos4 commented 9 months ago

What version of daisyUI are you using?

v4.7.2

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://play.tailwindcss.com/iFzG1xCAcv

Describe your issue

When a modal is closed, it can still receive focus (i.e. from keyboard).

This is a known conundrum about animating modals:

A fix for this would be:

Note: maybe there is another solution to this problem using some other technique that I don't know about.

Let me know if you want me to create a PR for this!

github-actions[bot] commented 9 months ago

Thank you @Atmos4 for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

saadeghi commented 7 months ago

duplicate of #2223