Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBModal won't close when MDBLightbox is present

Christian Aichner pro asked 4 years 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.) enter image description here


Piotr Glejzer staff commented 4 years 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 commented 4 years 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 4 years ago

Ok, thanks for that.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.26.1
  • Device: Desktop
  • Browser: Google Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No