From 60caca0950bdb088e82ce210a9e8ffeeefe821a7 Mon Sep 17 00:00:00 2001 From: Bartholomew Date: Thu, 9 May 2019 18:20:51 +0100 Subject: [PATCH] fix(widget-markdown): ensure correct value on list reorder (#2298) --- .../src/MarkdownControl/VisualEditor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/netlify-cms-widget-markdown/src/MarkdownControl/VisualEditor.js b/packages/netlify-cms-widget-markdown/src/MarkdownControl/VisualEditor.js index 8f5de3e4..c38933a3 100644 --- a/packages/netlify-cms-widget-markdown/src/MarkdownControl/VisualEditor.js +++ b/packages/netlify-cms-widget-markdown/src/MarkdownControl/VisualEditor.js @@ -72,7 +72,10 @@ export default class Editor extends React.Component { ); if (forcePropsValue) { - this.setState({ value: createSlateValue(this.props.value) }); + this.setState({ + value: createSlateValue(this.props.value), + lastRawValue: this.props.value, + }); } }