saadeghi / daisyui

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

Fix `.drawer-end` nesting #3254

Closed willtcarey closed 3 weeks ago

willtcarey commented 3 weeks ago

Fixes #3249

This is not a bug that happens when you only have a single drawer on the page. But when you have 2 drawers nested, and the outer drawer was a drawer-end variant, then both drawer toggles would open the end drawer.

Here's a comparison of what happened before and after

Before https://github.com/user-attachments/assets/8d228aa0-568c-4e4b-a551-4fd450eded9f

After https://github.com/user-attachments/assets/b7f274cd-0802-48b0-ac00-9ef6aacee528

saadeghi commented 3 weeks ago

Thank you!