From 09a092277c6240e56e4a7302709d2c04f90cb0a4 Mon Sep 17 00:00:00 2001 From: sumitdaga Date: Thu, 30 May 2019 12:41:30 +0530 Subject: [PATCH] fixes issue 3065 --- src/components/RichTextArea/RichTextArea.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/RichTextArea/RichTextArea.jsx b/src/components/RichTextArea/RichTextArea.jsx index 38394ac7c..b1e44bd15 100644 --- a/src/components/RichTextArea/RichTextArea.jsx +++ b/src/components/RichTextArea/RichTextArea.jsx @@ -155,7 +155,8 @@ class RichTextArea extends React.Component { editorState: EditorState.push(this.state.editorState, EditorState.createEmpty().getCurrentContent()), currentMDContent: null, oldMDContent: null, - isPrivate: false + isPrivate: false, + rawFiles: [] }) } @@ -168,7 +169,7 @@ class RichTextArea extends React.Component { let isEditor = false let isCloseButton = false const title = this.state.titleValue - const hasContent = (title && title.trim().length > 0) || this.state.editorState.getCurrentContent().hasText() + const hasContent = (title && title.trim().length > 0) || this.state.editorState.getCurrentContent().hasText() || this.state.rawFiles.length > 0 do { if (currNode.className @@ -188,7 +189,8 @@ class RichTextArea extends React.Component { titleValue: '', editorState: EditorState.createEmpty(), currentMDContent: null, - oldMDContent: null + oldMDContent: null, + rawFiles: [] }) }