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