Skip to content

Sub-menus don't appear if used in a modal dialog #79

@frumbert

Description

@frumbert

Description
When embedding inside a element that is modal, the drop-downs are rendered underneath the dialog element.

After closing the modal, menu elements are left pinned to the body and don't vanish.

Reproduction

Image

Steps
To reproduce the behavior:

Problem has been reproduced in jsfiddle.

https://jsfiddle.net/Lvkr86ux/

Expectation
Drop-downs should be within the container or at least at the same dom level, not at body root. Need to be able to trigger a cleanup / teardown event during dialog close to ensure no extra elements pollute the dom.

Environment

  • Wysimark Version:latest
  • Operating System:macos 15.4
  • Browser: chrome,safari,edge
  • TypeScript Version:n/a

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions