daisyui icon indicating copy to clipboard operation
daisyui copied to clipboard

bug: Modal close issue with backdrop-filter

Open rang501 opened this issue 8 months ago โ€ข 1 comments

Reproduction URL (Required)

https://codepen.io/raliphos/pen/vEOKdvJ

What version of daisyUI are you using?

v5 (latest)

Which browsers are you seeing the problem on?

All browsers

Describe your issue

Similar to the issue as in https://github.com/saadeghi/daisyui/issues/3818

Modal close transition is broken if I use a modal inside a container that has backdrop-blur.

rang501 avatar Jun 03 '25 07:06 rang501

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

github-actions[bot] avatar Jun 03 '25 07:06 github-actions[bot]

Backdrop-filter creates a new stacking context, so when the dialog (child) is not in the top layer it will be positioned relative to the parent div.

Move your backdrop-filter from the parent to a child, so it does not affect the parent.

https://codepen.io/pdanpdan/pen/JoYzqQE?editors=1000

pdanpdan avatar Sep 09 '25 00:09 pdanpdan

Or move the <dialog> tag out of the navbar.

saadeghi avatar Sep 09 '25 00:09 saadeghi