daisyui / react-daisyui

daisyUI components built with React 🌼
http://react.daisyui.com/
MIT License
955 stars 103 forks source link

Modal background is clickable #356

Closed lorenzobalzani closed 1 year ago

lorenzobalzani commented 1 year ago

I think it's a bug. As we can see at this link, when the modal opens up, the background becomes inactive and thus not clickable. Are there any chances to achieve this behavior?

benjitrosch commented 1 year ago

Hi @lorenzobalzani, I'm not sure I understand the question. We already have this functionality, you can see it in action here: https://react.daisyui.com/?path=/story/actions-modal--default

lorenzobalzani commented 1 year ago

Hi @lorenzobalzani, I'm not sure I understand the question. We already have this functionality, you can see it in action here: https://react.daisyui.com/?path=/story/actions-modal--default

If I open this modal, I‘m still able to scroll and interact with the background.

lorenzobalzani commented 1 year ago

Hi @lorenzobalzani, I'm not sure I understand the question. We already have this functionality, you can see it in action here: https://react.daisyui.com/?path=/story/actions-modal--default

If I open this modal, I‘m still able to scroll and interact with the background.

In Daisy UI, when a modal shows up, the background becomes inactive and thus, not scrollable. I think this would be the right behavior also for this library since it should be a wrapper.