1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

fix <Content> to have looser shouldComponentUpdate

This commit is contained in:
Ian Storm Taylor
2016-07-20 15:20:48 -07:00
parent 772f377864
commit fc950b7ca4

View File

@@ -70,11 +70,9 @@ class Content extends React.Component {
*/ */
shouldComponentUpdate = (props, state) => { shouldComponentUpdate = (props, state) => {
if (props.state.isNative) return false return props.state.isNative
return ( ? false
props.state.selection != this.props.state.selection || : true
props.state.document != this.props.state.document
)
} }
/** /**