Skip to content

Commit

Permalink
fix bug that was making us to reload the page after cancel was clicke…
Browse files Browse the repository at this point in the history
…d on editing (#16315)
  • Loading branch information
ggazzo authored Feb 20, 2020
2 parents 8fbd7b1 + 21350b0 commit 2bd0bec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/ui/client/lib/chatMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ export class ChatMessages {

this.deleteMsg(message);

this.$input.focus();
done();
}, () => {
if (this.editing.id === message._id) {
this.clearEditing();
}
this.$input.focus();
done();
});
Expand Down

0 comments on commit 2bd0bec

Please sign in to comment.