From c8faf84197452b7c0b21afc9604779f611c590a6 Mon Sep 17 00:00:00 2001 From: zhujinxuan Date: Tue, 7 Aug 2018 23:44:54 -0400 Subject: [PATCH] Fix stack --- packages/slate-react/src/components/editor.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/slate-react/src/components/editor.js b/packages/slate-react/src/components/editor.js index 8823b203b94..49fc1f5b7e5 100644 --- a/packages/slate-react/src/components/editor.js +++ b/packages/slate-react/src/components/editor.js @@ -186,14 +186,12 @@ class Editor extends React.Component { } get value() { - if ( - this.tmp.value === this.props.value && - this.tmp.stack === this.props.stack - ) { + if (this.tmp.value === this.props.value && this.tmp.stack === this.stack) { const { value } = this.tmp this.queueChange(value.change()) return value } + return this.associateStackAndValue(this.props.value, this.stack) }