Problem for close modal when there are 2 of them open


Topic: Problem for close modal when there are 2 of them open

Pierre K asked a year ago

Hello,We actually face a problem when we try to close a particular modal when there are 2 modals open.

Expected behavior : The select modal have to be close and the others modals have to stay open.

Actual behavior : the selected modal is closed but the body of the others modals is hidding, they are still on the page but their body disappear.

Question is it exist a property in the MDBModalRef which can help us to select the current modal and close only that current modal ?

Resources (screenshots, code snippets etc.) We use custom modals so all open modals are custom modals and the code for close them is this.modalRef.hide() and modalref is set in the typescript constructor like this : constructor(public modalRef: MDBModalRef) {}.

you can find a sample render of the problem at this link : problem render


Arkadiusz Idzikowski staff commented a year ago

Can you provide some example HTML/TS code and reproduction steps so we can recreate this problem on our end?


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 10.1.1
  • Device: Computer
  • Browser: Google Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes