Skip to content

Commit

Permalink
Changed showTimeSelect prop to true (#4373)
Browse files Browse the repository at this point in the history
* Changed showTimeSelect prop to true when showTimeSelectOnly prop is set to true

* lint

Co-authored-by: Greg Thompson <[email protected]>
  • Loading branch information
Dishebh and thompsongl authored Dec 14, 2020
1 parent 08070f6 commit 1fe9bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Added a sorting indicator on the `EuiDataGridColumn` ([#4343](https://github.com/elastic/eui/pull/4343))
- Added `disabled` and `loading` `status` to `EuiStep` ([#4338](https://github.com/elastic/eui/pull/4338))
- Added `closePopover` prop to `EuiDataGridColumnCellActionProps` ([#4346](https://github.com/elastic/eui/pull/4346))
- Changed `showTimeSelect` prop to true when `showTimeSelectOnly` prop is set to true. ([#4372](https://github.com/elastic/eui/pull/4372))

**Bug fixes**

Expand Down
4 changes: 3 additions & 1 deletion src/components/date_picker/date_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ export class EuiDatePicker extends Component<_EuiDatePickerProps> {
selected={selected}
shouldCloseOnSelect={shouldCloseOnSelect}
showMonthDropdown
showTimeSelect={showTimeSelect}
showTimeSelect={
showTimeSelectOnly ? true : showTimeSelect
}
showTimeSelectOnly={showTimeSelectOnly}
showYearDropdown
timeFormat={timeFormat}
Expand Down

0 comments on commit 1fe9bcd

Please sign in to comment.