build/Modal.js
function checkPointerDown(e) {
    if (config.clickOutsideDeactivates && !container.contains(e.target)) {
      deactivate({ returnFocus: false });
    }
  }
function checkPointerDown(e) {
    if (config.clickOutsideDeactivates && !container.contains(e.target)) {
      deactivate({ returnFocus: false });
    }
  }
function checkPointerDown ( e ) { if ( config . clickOutsideDeactivates && ! container . contains ( e . target ) ) { deactivate ( { returnFocus : false } ) ; } }
This needs to be done on mousedown and touchstart instead of click so that it precedes the focus event
This needs to be done on mousedown and touchstart instead of click so that it precedes the focus event