removeOverlay (showScroll = true) {
      if (this.overlay) {
        addOnceEventListener(this.overlay.$el, 'transitionend', () => {
          if (
            !this.overlay ||
            !this.overlay.$el ||
            !this.overlay.$el.parentNode ||
            this.overlay.value
          ) return;

          this.overlay.$el.parentNode.removeChild(this.overlay.$el);
          this.overlay.$destroy();
          this.overlay = null;
        });

        this.overlay.value = false;
      }

      showScroll && this.showScroll();
    }
/** removeOverlay(false) will not restore the scollbar afterwards */
removeOverlay(false) will not restore the scollbar afterwards
removeOverlay ( false ) will not restore the scollbar afterwards
removeOverlay (showScroll = true) {
      if (this.overlay) {
        addOnceEventListener(this.overlay.$el, 'transitionend', () => {
          if (
            !this.overlay ||
            !this.overlay.$el ||
            !this.overlay.$el.parentNode ||
            this.overlay.value
          ) return;
          this.overlay.$el.parentNode.removeChild(this.overlay.$el);
          this.overlay.$destroy();
          this.overlay = null;
        });
        this.overlay.value = false;
      }
      showScroll && this.showScroll();
    }
removeOverlay ( showScroll = true ) { if ( this . overlay ) { addOnceEventListener ( this . overlay . $el , 'transitionend' , ( ) => { if ( ! this . overlay || ! this . overlay . $el || ! this . overlay . $el . parentNode || this . overlay . value ) return ; this . overlay . $el . parentNode . removeChild ( this . overlay . $el ) ; this . overlay . $destroy ( ) ; this . overlay = null ; } ) ; this . overlay . value = false ; } showScroll && this . showScroll ( ) ; }
removeOverlay(false) will not restore the scollbar afterwards
removeOverlay ( false ) will not restore the scollbar afterwards