Topic: MDBModal won't close when MDBLightbox is present
Christian Aichner
pro premium asked 4 months ago
Expected behavior
The modal should close when clicking on the backdrop.
Actual behavior
The error shown below comes up when trying to close the modal by clicking on the backdrop. This only happens, if MDBLightbox is present in the modal.
Closing the modal by using the "X" or a close button works. It's just the backdrop that fails.
Resources (screenshots, code snippets etc.)

Open
- User: Pro
- Premium support: Yes
- Technology: React
- MDB Version: 4.26.1
- Device: Desktop
- Browser: Google Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 4 months ago
We didn't connect Modal + Lightbox so we didnt know about that problem. Can you show me your code about that?
Christian Aichner pro premium commented 4 months ago
It's open source on GitHub: https://github.com/aichner/wopi-front/blob/implement-1/src/components/organisms/modals/DamageReportList/index.jsx
You're looking at the second modal in that file.
Piotr Glejzer staff commented 3 months ago
Ok, thanks for that.