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

1.3k 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 answers

0
Vinny P. 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);