Close modal on backdrop click

This commit is contained in:
Ariel Fuggini 2020-08-27 14:23:00 -05:00 committed by JC Brand
parent 823134d762
commit ce2827a342

View File

@ -39,7 +39,7 @@ export const BootstrapModal = View.extend({
this.insertIntoDOM();
const Modal = bootstrap.Modal;
this.modal = new Modal(this.el, {
backdrop: 'static',
backdrop: true,
keyboard: true
});
this.el.addEventListener('hide.bs.modal', () => u.removeClass('selected', this.trigger_el), false);