1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-27 17:09:53 +02:00

fix content shouldComponentUpdate logic

This commit is contained in:
Ian Storm Taylor
2016-07-26 11:30:31 -07:00
parent 6a2e586382
commit 20ba3f6cac

View File

@@ -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
)
} }
/** /**