Modal dialog - hide modal before showing new modal


Topic: Modal dialog - hide modal before showing new modal

nick.kaynes pro premium priority asked 3 years ago

Hello I have a few modals to open on a page using the Non-invasive model to not block interaction.

Currently a new modal will overlap a previous modal.

Is there a way to automatically close any previous open modals before opening a new modal ?

So that the user only sees one modal open each time, improving the user experience.

So if user clicks progresively buttons modal1, modal2, model3 each modal will open but before opening the previous modal will automatically close.

Thank you in advance.

example snippet

https://mdbootstrap.com/snippets/standard/nick-kaynes/3937596


Michał Duszak staff commented 3 years ago

Hello, unfortunately we don't provide a method to do this.


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: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: windows desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: Yes
Tags