Open rmvanmeeuwen opened 8 years ago
Hide.bs.hide is handled by bootstrap it self, however will take a look ASAP..
On 3 Nov 2016 10:37, "rmvanmeeuwen" notifications@github.com wrote:
Hi,
I try to do some checks on form state inside the modal dialog, before actually closing the modal (by 'x'). So I wrote a piece of code:
$(document).on('hide.bs.modal', '#myeModal', function () { alert(this.id); });
(I edited the eModal.js so the modal part has id myeModal. But this event is fired twice (once before actually closing (as excpected) and one after the modal has been closed. It seems that something is not correct inside eModal.js? I cannot find the spot where/how to fix it
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/saribe/eModal/issues/60, or mute the thread https://github.com/notifications/unsubscribe-auth/AEFCJ_Qq24grkRzjMXTrGea7aUue5UlKks5q6bligaJpZM4KoM9C .
ok, thanks!
Same here. 'hidden.bs.modal' is firing twice,
Any updates? BTW, seems there's a workaround which actually works: https://github.com/twbs/bootstrap/issues/9111
Hi,
I try to do some checks on form state inside the modal dialog, before actually closing the modal (by 'x'). So I wrote a piece of code:
(I edited the eModal.js so the modal part has id myeModal. But this event is fired twice (once before actually closing (as excpected) and one after the modal has been closed. It seems that something is not correct inside eModal.js? I cannot find the spot where/how to fix it