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:
@@ -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
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user