From 4092836c94a7b47584b0f32e2eeccafd38bc0e3d Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 30 Mar 2017 13:45:58 -0400 Subject: PLT-1990 Closed markdown preview when edit post modal is closed (#5921) --- webapp/components/edit_post_modal.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webapp/components/edit_post_modal.jsx') diff --git a/webapp/components/edit_post_modal.jsx b/webapp/components/edit_post_modal.jsx index b2b607428..902b18d30 100644 --- a/webapp/components/edit_post_modal.jsx +++ b/webapp/components/edit_post_modal.jsx @@ -184,6 +184,8 @@ export default class EditPostModal extends React.Component { } onModalHide() { + this.refs.editbox.hidePreview(); + if (this.state.refocusId !== '') { setTimeout(() => { const element = $(this.state.refocusId).get(0); -- cgit v1.2.3-1-g7c22