DateRange: change focusInput prop on input focus

This commit is contained in:
Paul Sealock 2019-01-02 12:08:15 +13:00
parent 7bb9265383
commit c6b466694c
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class DateRange extends Component {
),
shortDateFormat
) }
onFocus={ () => this.onFocusChange( 'startDate' ) }
/>
<div className="woocommerce-calendar__inputs-to">{ __( 'to', 'wc-admin' ) }</div>
<DateInput
@ -133,6 +134,7 @@ class DateRange extends Component {
),
shortDateFormat
) }
onFocus={ () => this.onFocusChange( 'endDate' ) }
/>
</div>
<div className="woocommerce-calendar__react-dates">