title: How do i have a custom callback upon close using MicroModal?
body: <p>im using <a href="https://micromodal.now.sh/#usage" rel="nofollow noreferrer">MicroModal</a> to display a modal window.
  Everything works fine, except during the closing of the modal, i want to call an event to do something. I just don't get it where to do the callback.</p>
  
  <p>This is the init code :</p>
  
  <pre><code>        MicroModal.init({
          onShow: modal =&gt; console.info(`${modal.id} is shown`), 
          onClose: modal =&gt; console.info(`${modal.id} is 
          hidden`),  
          openTigger : 'data-micromodal-trigger',
          closeTrigger: 'data-micromodal-close',
          disableScroll: true,
          disableFocus: false,
          awaitCloseAnimation: false,
          debugMode: true,                
        });
  </code></pre>
  
  <p>I even tried modifying the onClose property to call my event, but it wouldnt execute. i.e.:</p>
  
  <pre><code>onClose: callMyEvent,
  </code></pre>
  
  <p>Anyone that has previously used this library can give me some hints on how to do this pls?
  Thanks.</p>