Merge pull request woocommerce/woocommerce-admin#1215 from woocommerce/fix/date-range-focus-endDate

DateRange: change focusInput prop on input focus
This commit is contained in:
Paul Sealock 2019-01-03 10:48:51 +13:00 committed by GitHub
commit 812cb17bd5
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">