From 40651f44ab384bf42c974eca3e845d1dc804f2c1 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 8 Jun 2017 19:46:02 -0700 Subject: [PATCH] MessageView.appendAttachmentView: Remove from proper parent FREEBIE --- js/views/message_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/message_view.js b/js/views/message_view.js index db3f4825ec4..c5825315af4 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -267,7 +267,7 @@ var parent = this.$('.attachments')[0]; if (view.updated && parent !== view.el.parentNode) { if (view.el.parentNode) { - parent.removeChild(view.el); + view.el.parentNode.removeChild(view.el); } this.trigger('beforeChangeHeight');