diff --git a/src/component/base/DraftEditor.react.js b/src/component/base/DraftEditor.react.js index 4cf47fd078..8458da6d87 100644 --- a/src/component/base/DraftEditor.react.js +++ b/src/component/base/DraftEditor.react.js @@ -352,7 +352,6 @@ class DraftEditor extends React.Component { customStyleFn, editorKey: this._editorKey, editorState, - key: 'contents' + this.state.contentsKey, textDirectionality, }; @@ -420,7 +419,10 @@ class DraftEditor extends React.Component { all DraftEditorLeaf nodes so it's first in postorder traversal. */} - + diff --git a/src/component/contents/DraftEditorContents-core.react.js b/src/component/contents/DraftEditorContents-core.react.js index ae7d5eda53..e2f67b72ef 100644 --- a/src/component/contents/DraftEditorContents-core.react.js +++ b/src/component/contents/DraftEditorContents-core.react.js @@ -174,7 +174,6 @@ class DraftEditorContents extends React.Component { decorator, direction, forceSelection, - key, offsetKey, selection, tree: editorState.getBlockTree(key), @@ -225,7 +224,7 @@ class DraftEditorContents extends React.Component { const child = React.createElement( Element, childProps, - , + , ); processedBlocks.push({