bootstrap-modal
bootstrap-modal copied to clipboard
modalmanager('loading') can be clicked out of
is it possible to prevent clicking on the body from closing the 'loading' modalmanager? if so, is it then also possible to programmatically close the 'loading' modalmanager?
+1, I0m also struggling with the same problems
See this issue: https://github.com/jschr/bootstrap-modal/issues/41
Right now there's no good way to do it but will look at fixing that for a future version.
You can also toggle the loading state of the manager with $('body').modalmanage('loading');
same problem here. any work-around?
@philgin maybe finding the element which is being clicked on, then doing "element.preventDefault" ? i dont think i actually ever got around it
The following works for me:
$('body').modalmanager('loading').find('.modal-scrollable').off('click.modalmanager');
@karol-wojcik :+1:
@karol-wojcik Works for me too.