From 40598d7198fd708387d027a3f160df3c2b391ef0 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 1 Aug 2016 12:40:09 -0700 Subject: [PATCH] fix isNative incorrectly being checked --- lib/components/content.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/components/content.js b/lib/components/content.js index 625461bf8..dd8bb5a4a 100644 --- a/lib/components/content.js +++ b/lib/components/content.js @@ -86,12 +86,14 @@ class Content extends React.Component { shouldComponentUpdate = (props, state) => { // If the state has been transformed natively, never re-render, or else we // will end up duplicating content. + console.log('isNative', props.state.isNative) if (props.state.isNative) return false return ( props.className != this.props.className || props.readOnly != this.props.readOnly || props.spellCheck != this.props.spellCheck || + props.state != this.props.state || props.style != this.props.style ) } @@ -423,6 +425,7 @@ class Content extends React.Component { */ onInput = (e) => { + if (this.isComposing) return if (isNonEditable(e)) return let { state, renderDecorations } = this.props