Sweetalert: Cannot open dialog immediately after swal.close()

Created on 11 Dec 2015  ·  4Comments  ·  Source: t4t5/sweetalert

Consider this code:

swal.close();
swal('The dialog');

It does not show "The dialog".

Most helpful comment

Consider using sweetalert2 - it does not suffer from this.

All 4 comments

same here, currently I use setTimeout to show dialog box.

swal.close();
setTimeout(function () {
  swal('The dialog');
}, 500)

Consider using sweetalert2 - it does not suffer from this.

thanks @fracz
sweetalert2 is awesome and looks it all fit my needs.
thank you guys

Fixed in 2.0. Make sure you read the upgrade guide!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sastrahost picture sastrahost  ·  5Comments

blackrosezy picture blackrosezy  ·  6Comments

Untit1ed picture Untit1ed  ·  5Comments

adiwithadidas picture adiwithadidas  ·  4Comments

girishbr picture girishbr  ·  5Comments