Skip to content

Commit bb63fb4

Browse files
committed
Merge pull request jquense#305 from jamesknelson/patch-1
Fix autoFocus
2 parents 828f25c + f159137 commit bb63fb4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/NumberPicker.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ let NumberPicker = React.createClass({
9191
className
9292
, onKeyPress
9393
, onKeyUp
94-
, autoFocus
9594
, ...props } = _.omit(this.props, Object.keys(propTypes))
9695
, val = this.constrainValue(this.props.value)
9796

@@ -144,7 +143,7 @@ let NumberPicker = React.createClass({
144143
tabIndex={props.tabIndex}
145144
placeholder={this.props.placeholder}
146145
value={val}
147-
autoFocus={autoFocus}
146+
autoFocus={this.props.autoFocus}
148147
editing={this.state.focused}
149148
format={this.props.format}
150149
parse={this.props.parse}

0 commit comments

Comments
 (0)