Angular SweetAlert2(swal)IE11角度2,弹出后显示叠加
仅在IE11中,即使在弹出窗口之后,背景覆盖也不会消失。在chrome、safari和firefox中工作良好Angular SweetAlert2(swal)IE11角度2,弹出后显示叠加,angular,internet-explorer-11,sweetalert,sweetalert2,Angular,Internet Explorer 11,Sweetalert,Sweetalert2,仅在IE11中,即使在弹出窗口之后,背景覆盖也不会消失。在chrome、safari和firefox中工作良好 swal({ title: 'ERROR!', text: 'Please check email and/or captcha', type: 'error', timer: 2000, showConfirmButton: false
swal({
title: 'ERROR!',
text: 'Please check email and/or captcha',
type: 'error',
timer: 2000,
showConfirmButton: false
}).catch(swal.noop);
请参见图:现在的解决方案:
在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);
目前的解决方案:
在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);
非常常见的情况是,覆盖层不能很好地去除。您可能必须在手动关闭弹出窗口时删除覆盖容器的类,以确保不会发生这种不规则情况。非常常见的行为是,覆盖不能很好地删除。您可能必须在手动关闭弹出窗口时删除覆盖容器的类,以确保不会发生这种不规则情况。