mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
fix: ConfirmDocumentUnload
This commit is contained in:
committed by
Franz Liedke
parent
ddb0a9f1ce
commit
f93a255a2f
@@ -24,11 +24,11 @@ export default class ConfirmDocumentUnload extends Component {
|
|||||||
oncreate(vnode) {
|
oncreate(vnode) {
|
||||||
super.oncreate(vnode);
|
super.oncreate(vnode);
|
||||||
|
|
||||||
$(window).on('beforeunload', this.handler);
|
$(window).on('beforeunload', this.handler.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
onremove(vnode) {
|
onremove(vnode) {
|
||||||
$(window).off('beforeunload', this.handler);
|
$(window).off('beforeunload', this.handler.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
view(vnode) {
|
view(vnode) {
|
||||||
|
Reference in New Issue
Block a user