From a287eede61e15caba99784ce55076bae446a9156 Mon Sep 17 00:00:00 2001 From: Justo Sierra Linares Date: Fri, 26 Aug 2016 14:48:53 -0400 Subject: [PATCH] fix "Can't tap into a field if I tap its placeholder, when floatingLabelEnabled={true}" #128 --- lib/mdl/Textfield.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mdl/Textfield.js b/lib/mdl/Textfield.js index 60bb8553..9f9822b4 100644 --- a/lib/mdl/Textfield.js +++ b/lib/mdl/Textfield.js @@ -489,7 +489,7 @@ class Textfield extends Component { setPlaceholder(placeholder) { if(this.refs.input) { - this.refs.input.setNativeProps({ placeholder }); + this.refs.input.setNativeProps({ placeholder }); } } @@ -529,6 +529,7 @@ class Textfield extends Component { return ( + {floatingLabel} - {floatingLabel}