-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hey, there's a bug in the sweetAlert library, which probably no one cares about, but zonejs prevents sweetAlert from making it's callback:
swal({
title: "Are you sure?",
text: "You will not be able to recover this imaginary file!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false,
html: false
}, function(){
swal("Deleted!",
"Your imaginary file has been deleted.",
"success");
});
Somewhere in sweetAlert this bug happens:
Error: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
at TypeError (native)
at s (https://dashboard-dev.bigsmall.io/packages/patrickml_swal.js?06d775f51a9debdd71fd5de7eb0594d0e94eed1b:32:7559)
at HTMLButtonElement.p (https://dashboard-dev.bigsmall.io/packages/patrickml_swal.js?06d775f51a9debdd71fd5de7eb0594d0e94eed1b:32:3375)
w/o zones, nobody knows and my callback happens
w/ zones, the callback doesn't happen.
Is there a way to wrap calls in something to protect them from zones catching the call?
Thanks!
Mike
Metadata
Metadata
Assignees
Labels
No labels