Close modal on backdrop click
This commit is contained in:
parent
823134d762
commit
ce2827a342
@ -39,7 +39,7 @@ export const BootstrapModal = View.extend({
|
|||||||
this.insertIntoDOM();
|
this.insertIntoDOM();
|
||||||
const Modal = bootstrap.Modal;
|
const Modal = bootstrap.Modal;
|
||||||
this.modal = new Modal(this.el, {
|
this.modal = new Modal(this.el, {
|
||||||
backdrop: 'static',
|
backdrop: true,
|
||||||
keyboard: true
|
keyboard: true
|
||||||
});
|
});
|
||||||
this.el.addEventListener('hide.bs.modal', () => u.removeClass('selected', this.trigger_el), false);
|
this.el.addEventListener('hide.bs.modal', () => u.removeClass('selected', this.trigger_el), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user