Skip to content

Commit 9b53cf6

Browse files
author
Marco Cesarato
committed
feat: add selection props
1 parent c319b6f commit 9b53cf6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,8 @@ class InputSpinner extends Component {
739739
ref={input => this.textInput = input}
740740
style={this._getInputTextStyle()}
741741
value={this.getValue()}
742+
selectionColor={this.props.selectionColor}
743+
selectTextOnFocus{this.props.selectTextOnFocus}
742744
autofocus={this.props.autofocus}
743745
editable={this.isEditable()}
744746
maxLength={this.props.maxLength}
@@ -787,6 +789,8 @@ InputSpinner.propTypes = {
787789
disabled: PropTypes.bool,
788790
editable: PropTypes.bool,
789791
autofocus: PropTypes.bool,
792+
selectTextOnFocus: PropTypes.bool,
793+
selectionColor: PropTypes.string,
790794
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
791795
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
792796
onChange: PropTypes.func,
@@ -842,6 +846,8 @@ InputSpinner.defaultProps = {
842846
disabled: false,
843847
editable: true,
844848
autofocus: false,
849+
selectTextOnFocus: false,
850+
selectionColor: null,
845851
width: 150,
846852
height: 50,
847853
buttonLeftDisabled: false,

0 commit comments

Comments
 (0)