the problem is that the 2 SweetAlerts have the same name "SA". One in the main frame and the other in the dialog.
If you open the Dialog and close it again, the SA in the main frame doesn't fire any more. Everything works as expected if I rename the SweetAlert in the Dialog for example to "SA2".