saadeghi / daisyui

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

bug: Can't Scroll through Closed Scrolling Modal #3129

Closed abegehr closed 3 weeks ago

abegehr commented 4 months ago

What version of daisyUI are you using?

v4.12.10

Which browsers are you seeing the problem on?

Safari

Reproduction URL

https://play.tailwindcss.com/CeDiRXRV2i

Describe your issue

I've noticed a bug on one of my pages that uses daisyui, where a div that's marked with "overflow-y-scroll" doesn't scroll when the cursor is over a modal that itself scrolls, while the modal is closed. The issue doesn't occur on Chrome.

There is a reproduction attached to this issue. Screenshots for explanation:

Screenshot 2024-07-11 at 13 49 30 Screenshot 2024-07-11 at 13 49 46
github-actions[bot] commented 4 months ago

Thank you @abegehr 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.

abegehr commented 4 months ago

I'm working around this issue by setting overflow-hidden on the modal-box when the modal is closed now.

saadeghi commented 4 months ago

It does scroll anywhere on the green box. I don't see any issues ๐Ÿค”
This video is Safari 18:

https://github.com/user-attachments/assets/44fb31c8-49f2-462d-bfc7-e81d9f22476b