mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 01:42:47 +08:00
FIX: Clear edit post when clicking reply.
This commit is contained in:
parent
3ef66b1dca
commit
9fbab34e57
1 changed files with 2 additions and 1 deletions
|
@ -369,10 +369,11 @@ const Composer = RestModel.extend({
|
|||
|
||||
const composer = this;
|
||||
if (!replyBlank &&
|
||||
(opts.action !== this.get('action') || ((opts.reply || opts.action === this.EDIT) && this.get('replyDirty')))) {
|
||||
((opts.reply || opts.action === this.EDIT) && this.get('replyDirty'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (opts.action === REPLY && this.get('action') === EDIT) this.set('reply', '');
|
||||
if (!opts.draftKey) throw 'draft key is required';
|
||||
if (opts.draftSequence === null) throw 'draft sequence is required';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue