mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 00:54:22 +02:00
fix content shouldComponentUpdate logic
This commit is contained in:
@@ -81,9 +81,13 @@ class Content extends React.Component {
|
||||
*/
|
||||
|
||||
shouldComponentUpdate = (props, state) => {
|
||||
return props.state.isNative
|
||||
? false
|
||||
: true
|
||||
return (
|
||||
props.className != this.props.className ||
|
||||
props.readOnly != this.props.readOnly ||
|
||||
props.spellCheck != this.props.spellCheck ||
|
||||
props.style != this.props.style ||
|
||||
props.state.isNative !== true
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user