From a88d427d6fb31f8bce735069285113e25d736f1b Mon Sep 17 00:00:00 2001 From: Gilad Artzi Date: Thu, 6 Oct 2016 10:21:29 +0300 Subject: [PATCH] TextField.js - componentWillReceiveProps - Changing this.props.text to this.state.text --- lib/TextField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TextField.js b/lib/TextField.js index d42523a..201f1c9 100644 --- a/lib/TextField.js +++ b/lib/TextField.js @@ -27,7 +27,7 @@ export default class TextField extends Component { this.refs.wrapper.measureLayout(...args) } componentWillReceiveProps(nextProps: Object){ - if(this.props.text !== nextProps.value){ + if(this.state.text !== nextProps.value){ nextProps.value.length !== 0 ? this.refs.floatingLabel.floatLabel() : this.refs.floatingLabel.sinkLabel();