Closed akiwang closed 5 years ago
I have tried out a workaround: remove the modal dialog in the callbacks of eModal.confirm.
$('div[class*="modal fade"]').remove();
$('div[class*="modal-backdrop fade show"]').remove();
Then, the eModal.alert can be shown now.
With the workaround, the problem is solved! THX!
I would not suggest manipulating the dom but if you have to you can access it from the return object when executing eModal
var emodal = eMolda('messsage');
emodal.element.find(SELECTOR);
Moreover, this is an animation issue, we will try to fix ASAP; This can be worked around with:
eModal.confirm('message', 'title')
.then(() => setTimeout(() => eModal.alert('message1', 'title1'), 666));
eModal.alert can not show and there isn't any javascript error in my console.