mirror of
https://github.com/flarum/core.git
synced 2025-07-20 16:21:18 +02:00
Don't bother confirming exit if there's no content
This commit is contained in:
@@ -41,7 +41,7 @@ export default class ComposerBody extends Component {
|
||||
}
|
||||
|
||||
preventExit() {
|
||||
return this.content() != this.props.originalContent && !confirm(this.props.confirmExit);
|
||||
return this.content() && this.content() != this.props.originalContent && !confirm(this.props.confirmExit);
|
||||
}
|
||||
|
||||
onsubmit(value) {
|
||||
|
Reference in New Issue
Block a user