question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to listen event of modal dismiss?

See original GitHub issue

like the bootstrap modal event of hidden.bs.modal

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
zeeshanjan82commented, May 10, 2016

In my case the complete function is getting called before the modal is shown to the user.

1reaction
mustii82commented, May 9, 2018
               var onModalClose = function() {
                    alert("Modal closed!");
                };

              var modal = document.querySelector('.modal');
                M.Modal.init(modal,{
                    onCloseEnd: onModalClose // Callback für Modal schließen.
                }

This will work with the Latest Version the other snippets are outdated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle the modal closing event in Twitter Bootstrap?
There are two pair of modal events, one is "show" and "shown", the other is "hide" and "hidden". As you can see from...
Read more >
Modal Events - hide.bs.modal - W3Schools Tryit Editor
Click the "Hide Modal" button to trigger the hide method (which will trigger the hide.bs.modal event).
Read more >
How to handle the modal closing event in Twitter Bootstrap?
How to handle the modal closing event in Twitter Bootstrap?
Read more >
How to trigger an event when bootstrap modal closes
If you want to close the modal, use .modal('hide'). Are you using Bootstrap 3 or Bootstrap 4? It works in both. (They moved...
Read more >
Add event listener to modal close - Drupal Answers
In core dialog.js code I've found a following lines of code. $(window).trigger('dialog:afterclose', [dialog, $element]);.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found