Skip to content

bug: Parent modal styles leak into nested native dialog modal-box #4637

Closed

Description

@IdrisCelik

Reproduction URL (Required)

https://play.tailwindcss.com/5R0bZpcsph

What version of daisyUI are you using?

latest

Which browsers are you seeing the problem on?

No response

Describe your issue

Native .showModal() supports nested DOM placement.
DaisyUI 5.6.13 uses .modal[open] .modal-box instead of .modal[open] > .modal-box.
Therefore an open parent forces nested child boxes into their open animation state.
Child opening and closing animations break, and placement modifiers can leak into nested dialogs.

Pr will follow...

Activity

  1. github-actions commented on Jul 22, 2026

    @github-actions

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

  2. added a commit that references this issue on Jul 22, 2026
    72f30ea
  3. added a commit that references this issue on Jul 25, 2026
    1e81bdd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions