1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 05:31:56 +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) => {
if (props.state.isNative) return false
return (
props.state.selection != this.props.state.selection ||
props.state.document != this.props.state.document
)
return props.state.isNative
? false
: true
}
/**