[Modal] Unstyled Modal Backdrop does not show, does not receive mouse events #875
Labels
component: modal
This is the name of the generic UI component, not the React module!
package: @mui/base (legacy)
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
I encountered this bug during a routine project update. It occurs when using the base modal without using style.
Steps:
Additionally,
className
props passed to thebackdrop
slot component are no longer applied to the backdrop modal. I have been using aclassName
to provide the styling from a stylesheet.Current behavior
The modal backdrop does not show, click events no longer work. Provided
className
not included.Expected behavior
Modal backdrop to show and respond to click events. Provided
className
prop onbackdrop
slot component passed to the rendered component.Context
I maintain my wife's portfolio website at https://janicechan.design/, and I use the modal to construct a lgithbox image gallery.
You can view an example via this link: https://janicechan.design/scenic/the-tales-of-hoffmann?galleryImg=00-hoffmann-title
The entire source code can be found here: https://github.com/EagleLizard/jcd-v3
Your environment
Browser:
User Agent:
npx @mui/envinfo
Search keywords: modal backdrop
The text was updated successfully, but these errors were encountered: