Skip to content

Commit

Permalink
Merge pull request #221 from chicojasl/master
Browse files Browse the repository at this point in the history
fix "Can't tap into a field if I tap its placeholder, when floatingLbelEnabled={true}"
  • Loading branch information
Crash-- authored Sep 15, 2016
2 parents 1ed59aa + a287eed commit 20edbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mdl/Textfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class Textfield extends Component {

setPlaceholder(placeholder) {
if(this.refs.input) {
this.refs.input.setNativeProps({ placeholder });
this.refs.input.setNativeProps({ placeholder });
}
}

Expand Down Expand Up @@ -529,6 +529,7 @@ class Textfield extends Component {

return (
<View style={this.props.style} >
{floatingLabel}
<TextInput // the input
ref="input"
{...inputProps}
Expand All @@ -547,7 +548,6 @@ class Textfield extends Component {
onBlur={this._onBlur}
allowFontScaling={this.props.allowFontScaling}
/>
{floatingLabel}
<Underline ref="underline" // the underline
{...underlineProps}
underlineAniDur={this.props.floatingLabelAniDuration}
Expand Down

0 comments on commit 20edbb1

Please sign in to comment.