Skip to content

Commit

Permalink
feat: add selection props
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cesarato committed Aug 6, 2020
1 parent c319b6f commit 9b53cf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ class InputSpinner extends Component {
ref={input => this.textInput = input}
style={this._getInputTextStyle()}
value={this.getValue()}
selectionColor={this.props.selectionColor}
selectTextOnFocus{this.props.selectTextOnFocus}
autofocus={this.props.autofocus}
editable={this.isEditable()}
maxLength={this.props.maxLength}
Expand Down Expand Up @@ -787,6 +789,8 @@ InputSpinner.propTypes = {
disabled: PropTypes.bool,
editable: PropTypes.bool,
autofocus: PropTypes.bool,
selectTextOnFocus: PropTypes.bool,
selectionColor: PropTypes.string,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
onChange: PropTypes.func,
Expand Down Expand Up @@ -842,6 +846,8 @@ InputSpinner.defaultProps = {
disabled: false,
editable: true,
autofocus: false,
selectTextOnFocus: false,
selectionColor: null,
width: 150,
height: 50,
buttonLeftDisabled: false,
Expand Down

0 comments on commit 9b53cf6

Please sign in to comment.