mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02:00
Protect dismissible modals from closing by ESC key
This commit is contained in:
@@ -53,7 +53,11 @@ export default class ModalManager extends Component {
|
|||||||
|
|
||||||
m.redraw(true);
|
m.redraw(true);
|
||||||
|
|
||||||
this.$().modal({backdrop: this.component.isDismissible() ? true : 'static'}).modal('show');
|
const dismissible = !!this.component.isDismissible();
|
||||||
|
this.$().modal({
|
||||||
|
backdrop: dismissible || 'static',
|
||||||
|
keyboard: dismissible
|
||||||
|
}).modal('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user