diff --git a/framework/core/js/forum/src/components/composer-body.js b/framework/core/js/forum/src/components/composer-body.js index 4ee024041..e2fbd0ce4 100644 --- a/framework/core/js/forum/src/components/composer-body.js +++ b/framework/core/js/forum/src/components/composer-body.js @@ -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) {