mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
fix content shouldComponentUpdate logic
This commit is contained in:
@@ -81,9 +81,13 @@ class Content extends React.Component {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
shouldComponentUpdate = (props, state) => {
|
shouldComponentUpdate = (props, state) => {
|
||||||
return props.state.isNative
|
return (
|
||||||
? false
|
props.className != this.props.className ||
|
||||||
: true
|
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