mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
Don't bother confirming exit if there's no content
This commit is contained in:
parent
fb834675b9
commit
df3d205132
|
@ -41,7 +41,7 @@ export default class ComposerBody extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
preventExit() {
|
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) {
|
onsubmit(value) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user