jquery-confirm
jquery-confirm copied to clipboard
do not close when using async as action function
jquery-confirm version: v3.x.x
I'm submitting a ... (check one with "x") [ ] bug report [x] feature request [ ] support request
Current behavior:
modal closes needlessly when using async method in acton of abutton when using the modal for a form.
Expected behavior:
modal closes when I want it to be closed when using async functions.
Steps to reproduce: return false inside a promise returning function (async function) used for the action of a button.
Related code: action: async function () { if (this.$content.find('.name').val().length == 0){ this.$content.find('.name').addClass('error') return false; } ... } insert any relevant code here
**Other information:**