mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
FIX: ESC to dismiss empty draft topic composer
Previously originalTitle was set to undefined leading to titleDirty being unconditionally undefined for new topics That mean you could not dismiss the composer via ESC
This commit is contained in:
parent
8f5a651e51
commit
44712c5f98
@ -785,11 +785,14 @@ const Composer = RestModel.extend({
|
||||
});
|
||||
}
|
||||
|
||||
this.set("originalTitle", "");
|
||||
|
||||
if (opts.title) {
|
||||
this.set("title", opts.title);
|
||||
}
|
||||
|
||||
this.set("originalText", opts.draft ? "" : this.reply);
|
||||
|
||||
if (this.editingFirstPost) {
|
||||
this.set("originalTitle", this.title);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user