diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index f9c03a175..1f1aebf8b 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -525,6 +525,10 @@ var TextInput = React.createClass({ if (this.props.onFocus) { this.props.onFocus(event); } + + if (this.props.selectionState) { + this.props.selectionState.focus(); + } }, _onPress: function(event: Event) { @@ -565,6 +569,10 @@ var TextInput = React.createClass({ if (this.props.onBlur) { this.props.onBlur(event); } + + if (this.props.selectionState) { + this.props.selectionState.blur(); + } }, _onTextInput: function(event: Event) {