DateRange: change focusInput prop on input focus
This commit is contained in:
parent
7bb9265383
commit
c6b466694c
|
@ -118,6 +118,7 @@ class DateRange extends Component {
|
||||||
),
|
),
|
||||||
shortDateFormat
|
shortDateFormat
|
||||||
) }
|
) }
|
||||||
|
onFocus={ () => this.onFocusChange( 'startDate' ) }
|
||||||
/>
|
/>
|
||||||
<div className="woocommerce-calendar__inputs-to">{ __( 'to', 'wc-admin' ) }</div>
|
<div className="woocommerce-calendar__inputs-to">{ __( 'to', 'wc-admin' ) }</div>
|
||||||
<DateInput
|
<DateInput
|
||||||
|
@ -133,6 +134,7 @@ class DateRange extends Component {
|
||||||
),
|
),
|
||||||
shortDateFormat
|
shortDateFormat
|
||||||
) }
|
) }
|
||||||
|
onFocus={ () => this.onFocusChange( 'endDate' ) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="woocommerce-calendar__react-dates">
|
<div className="woocommerce-calendar__react-dates">
|
||||||
|
|
Loading…
Reference in New Issue