diff --git a/src/PinItem.jsx b/src/PinItem.jsx index 4e69651..128cb4e 100644 --- a/src/PinItem.jsx +++ b/src/PinItem.jsx @@ -30,7 +30,7 @@ class PinItem extends Component { this.onChange = this.onChange.bind(this); this.onKeyDown = this.onKeyDown.bind(this); this.onFocus = this.onFocus.bind(this); - this.onBlur = this.onBlur.bind(this); + this.onBlur = this.onBlur.bind(this); } onKeyDown(e) { @@ -89,7 +89,7 @@ class PinItem extends Component { render() { const { focus, value } = this.state; const { type, inputMode, inputStyle, inputFocusStyle } = this.props; - const inputType = this.props.type === 'numeric' ? 'tel' : (this.props.type || 'text'); + const inputType = type === 'numeric' ? 'tel' : (type || 'text'); return ( (this.input = n) } onFocus={ this.onFocus }