Sage / carbon

Carbon by Sage | ReactJS UI Component Library
https://carbon.sage.com
Apache License 2.0
278 stars 85 forks source link

Dialog is re-added to the DOM after opening Vertical Menu #7073

Open rawlmp opened 2 weeks ago

rawlmp commented 2 weeks ago

Description

At some point we need to show a modal to prevent navigation before saving changes but the modal shown is colliding with Vertical Menu in mobile devices after clicking a Navigation Item.

It seems the Dialog component is re-added to the DOM after opening Vertical Menu, staying in top and blocking any user action.

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-kbwisw?file=src%2FApp.tsx

Steps to reproduce

Info is provided in the Stackblitz example

JIRA ticket numbers (Sage only)

SBS-114293

Suggested solution

No response

Carbon version

141.0.8

Design tokens version

4.34.0

Relevant browsers

Chrome

Relevant OSs

MacOS

Additional context

No response

Confidentiality

Parsium commented 1 week ago

FE-6908