Skip to content

Commit

Permalink
Fix stack
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujinxuan committed Aug 8, 2018
1 parent 79b882b commit c8faf84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/slate-react/src/components/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit c8faf84

Please sign in to comment.