yjose / reactjs-popup

React Popup Component - Modals,Tooltips and Menus —  All in one
https://react-popup.elazizi.com/
MIT License
1.8k stars 207 forks source link

Popup opens behind MUI Dialog #320

Open Ploppz opened 2 years ago

Ploppz commented 2 years ago

Version

2.0.5

Test Case

https://codesandbox.io/s/eloquent-voice-c239pn?file=/src/App.js

Expected Behavior

The popup should be visible

Actual Behavior

The popup is partially occluded by the Dialog

shnigi commented 2 years ago

Have similar problem, popup appears behind Storybook menu.

Ploppz commented 1 year ago

@shnigi We found a way to solve it. On the popup component in React, or with CSS referencing the class of the popup element, set z-index to a very high number that is higher than that of the Dialog. We went with zIndex:"100000000"