mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Protect dismissible modals from closing by ESC key
This commit is contained in:
parent
922e294668
commit
fd4c0d30d8
@ -53,7 +53,11 @@ export default class ModalManager extends Component {
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user