|
1 | 1 | /* |
2 | | -react-datetime v2.16.0 |
| 2 | +react-datetime v2.16.1 |
3 | 3 | https://github.com/YouCanBookMe/react-datetime |
4 | 4 | MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE |
5 | 5 | */ |
@@ -524,15 +524,17 @@ return /******/ (function(modules) { // webpackBootstrap |
524 | 524 | children = []; |
525 | 525 |
|
526 | 526 | if ( this.props.input ) { |
527 | | - var finalInputProps = assign({ |
528 | | - type: 'text', |
529 | | - className: 'form-control', |
530 | | - onClick: this.overrideEvent( 'onClick', this.openCalendar ), |
531 | | - onFocus: this.overrideEvent( 'onFocus', this.openCalendar ), |
532 | | - onChange: this.overrideEvent( 'onChange', this.onInputChange ), |
533 | | - onKeyDown: this.overrideEvent( 'onKeyDown', this.onInputKey ), |
534 | | - value: this.state.inputValue, |
535 | | - }, this.props.inputProps); |
| 527 | + var finalInputProps = assign( |
| 528 | + { type: 'text', className: 'form-control', value: this.state.inputValue }, |
| 529 | + this.props.inputProps, |
| 530 | + { |
| 531 | + onClick: this.overrideEvent( 'onClick', this.openCalendar ), |
| 532 | + onFocus: this.overrideEvent( 'onFocus', this.openCalendar ), |
| 533 | + onChange: this.overrideEvent( 'onChange', this.onInputChange ), |
| 534 | + onKeyDown: this.overrideEvent( 'onKeyDown', this.onInputKey ), |
| 535 | + } |
| 536 | + ); |
| 537 | + |
536 | 538 | if ( this.props.renderInput ) { |
537 | 539 | children = [ React.createElement('div', { key: 'i' }, this.props.renderInput( finalInputProps, this.openCalendar, this.closeCalendar )) ]; |
538 | 540 | } else { |
|
0 commit comments