SweetAlert2 (swal) IE11 Angular 2, Overlay showing after popup

1.4k Views Asked by At

Background overlay does not disappear even after the popup only in IE11. Working fine in chrome, safari, and firefox.

      swal({
            title: 'ERROR!',
            text: 'Please check email and/or captcha',
            type: 'error',
            timer: 2000,
            showConfirmButton: false
           }).catch(swal.noop);

See Image: Image Link

1

There are 1 best solutions below

0
On

Solution for now: Working with no issue on IE11:

       swal({
            title: 'ERROR!',
            text: 'Please check email and/or captcha',
            type: 'error',
            timer: 2000,
            showConfirmButton: false
           }).then(() => {if (swal.isVisible() === true) {$('.swal2-container').remove() } }, () => {if (swal.isVisible() === true) { $('.swal2-container').remove() } })                     
          .catch(swal.noop);