Skip to content

Commit 351612e

Browse files
author
Marco Cesarato
committed
feat: add return key type and label
1 parent f9e4c81 commit 351612e

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
@@ -741,6 +741,8 @@ class InputSpinner extends Component {
741741
value={this.getValue()}
742742
selectionColor={this.props.selectionColor}
743743
selectTextOnFocus={this.props.selectTextOnFocus}
744+
returnKeyType={this.props.returnKeyType}
745+
returnKeyLabel={this.props.returnKeyLabel}
744746
autofocus={this.props.autofocus}
745747
editable={this.isEditable()}
746748
maxLength={this.props.maxLength}
@@ -791,6 +793,8 @@ InputSpinner.propTypes = {
791793
autofocus: PropTypes.bool,
792794
selectTextOnFocus: PropTypes.bool,
793795
selectionColor: PropTypes.string,
796+
returnKeyLabel: PropTypes.string,
797+
returnKeyType: PropTypes.string,
794798
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
795799
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
796800
onChange: PropTypes.func,
@@ -848,6 +852,8 @@ InputSpinner.defaultProps = {
848852
autofocus: false,
849853
selectTextOnFocus: null,
850854
selectionColor: null,
855+
returnKeyLabel: null,
856+
returnKeyType: null,
851857
width: 150,
852858
height: 50,
853859
buttonLeftDisabled: false,

0 commit comments

Comments
 (0)