Skip to content

Commit

Permalink
fix(datepicker): adjust component for new Select API
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed Apr 9, 2020
1 parent db8ff1c commit cf1ce81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/DatePicker/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DatePicker extends Component {
return { day, month, year };
};

handleMonthSelect = month => this.setState({ month });
handleMonthSelect = e => this.setState({ month: e.target.value });

handleYearSelect = year => this.setState({ year });

Expand Down Expand Up @@ -167,11 +167,11 @@ class DatePicker extends Component {
<WindowContent>
<Toolbar noPadding style={{ justifyContent: 'space-between' }}>
<Select
items={months}
selectedIndex={month}
options={months}
value={month}
onChange={this.handleMonthSelect}
width={128}
height={200}
menuMaxHeight={200}
/>
<NumberField
value={year}
Expand Down

0 comments on commit cf1ce81

Please sign in to comment.