Im using NgbModal to open a template the following way:
this.modalReference = this.modalService.open(template, MODAL_OPTIONS);
MODAL_OPTIONS
is defined the following way:
export const MODAL_OPTIONS: NgbModalOptions = {backdrop: 'static', keyboard: false};
The documentation states that the MODAL_OPTIONS
definition above is supposed to prevent the modal to be closed when i click outside of it. Thats also what was recommended in this thread. But it doesnt work for me. The modal still closes when i click outside. Does anyone know what causes that behaviour?