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

waldyrious picture waldyrious  路  5Comments

rafatux picture rafatux  路  5Comments

AlexV525 picture AlexV525  路  4Comments

VoxelNaut picture VoxelNaut  路  6Comments

krishnamraju picture krishnamraju  路  3Comments