From 20ba3f6cac51b01dd4086c29f65c71c907a1e952 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Tue, 26 Jul 2016 11:30:31 -0700 Subject: [PATCH] fix content shouldComponentUpdate logic --- lib/components/content.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/components/content.js b/lib/components/content.js index 4b43d65bb..8e696348b 100644 --- a/lib/components/content.js +++ b/lib/components/content.js @@ -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 + ) } /**