diff --git a/Example/package.json b/Example/package.json index ff495ff..21978da 100644 --- a/Example/package.json +++ b/Example/package.json @@ -12,7 +12,7 @@ "react": "16.13.1", "react-dom": "^16.13.1", "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz", - "react-native-input-spinner": "^1.2.16", + "react-native-input-spinner": "^1.2.17", "react-native-web": "^0.13.5" }, "prettier": { diff --git a/index.js b/index.js index 1b8ab3c..88594bc 100644 --- a/index.js +++ b/index.js @@ -740,7 +740,7 @@ class InputSpinner extends Component { style={this._getInputTextStyle()} value={this.getValue()} selectionColor={this.props.selectionColor} - selectTextOnFocus{this.props.selectTextOnFocus} + selectTextOnFocus={this.props.selectTextOnFocus} autofocus={this.props.autofocus} editable={this.isEditable()} maxLength={this.props.maxLength} @@ -846,7 +846,7 @@ InputSpinner.defaultProps = { disabled: false, editable: true, autofocus: false, - selectTextOnFocus: false, + selectTextOnFocus: null, selectionColor: null, width: 150, height: 50, diff --git a/package.json b/package.json index ece7f4e..39b66d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-input-spinner", - "version": "1.2.16", + "version": "1.2.17", "description": "React native input with increase and decrease buttons", "main": "index.js", "scripts": {