jquery-confirm icon indicating copy to clipboard operation
jquery-confirm copied to clipboard

do not close when using async as action function

Open banned007 opened this issue 6 years ago • 0 comments

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:**

banned007 avatar Jun 05 '19 22:06 banned007