From 945574c0df467ead80e820aa7be9ebcd6fabb13f Mon Sep 17 00:00:00 2001 From: Kishankhakhar Date: Sat, 10 Jun 2017 13:22:59 +0530 Subject: [PATCH] pointing cursor to the end everytime onFocus is called. --- lib/ReactTelephoneInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ReactTelephoneInput.js b/lib/ReactTelephoneInput.js index 03f931bd..7fcc518c 100644 --- a/lib/ReactTelephoneInput.js +++ b/lib/ReactTelephoneInput.js @@ -372,8 +372,8 @@ var ReactTelephoneInput = exports.ReactTelephoneInput = React.createClass({ if (typeof this.props.onFocus === 'function') { this.props.onFocus(this.state.formattedNumer, this.state.selectedCountry); } - this._fillDialCode(); + this._cursorToEnd(); }, _mapPropsToState: function _mapPropsToState(props) { var firstCall = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;