swal({
title: "Etsi ohjelmaa!",
text: "Kirjoita ohjelman nimi:",
type: "input",
showCancelButton: true,
closeOnConfirm: true,
animation: "slide-from-top",
inputPlaceholder: nimi
}
I tried onClose: $("sweet-alert").removeClass()
but it doesn't work. Also I should remove class "sweet-overlay".
So how to remove Sweet-alert from DOM after dialog closes?
SweetAlert2 removes itself after closing, proof:
Make sure you're using the latest version.