mirror of
https://github.com/flarum/framework.git
synced 2025-05-29 11:40:18 +08:00
Implement onbeforeunload composer confirmation. closes flarum/core#113
This commit is contained in:
@ -49,7 +49,7 @@ export default class ComposerBody extends Component {
|
||||
}
|
||||
|
||||
preventExit() {
|
||||
return this.content() && this.content() != this.props.originalContent && !confirm(this.props.confirmExit);
|
||||
return this.content() && this.content() != this.props.originalContent && this.props.confirmExit;
|
||||
}
|
||||
|
||||
onsubmit(value) {
|
||||
|
Reference in New Issue
Block a user