From 3a75f452d251e0d211dc9a46282213f402bd4228 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Tue, 5 May 2020 17:28:33 -0500 Subject: [PATCH] [EuiDatePicker] `defaultProps` types (#3427) * direct defaultProps typing * as const * CL * take 3: casting --- CHANGELOG.md | 1 + src/components/date_picker/date_picker.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d8884f8f96..a822b31fe7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Fixed `EuiDatePickerRange` start date popover to sit left under the icon ([#3383](https://github.com/elastic/eui/pull/3383)) - Fixed `EuiHeader` `z-index` issues with popovers and added body classes for the presence of `EuiFlyout` and `EuiCollapsibleNav.isOpen` ([#3398](https://github.com/elastic/eui/pull/3398)) - Fixed `EuiInMemoryTable` data reset when filter is set and item is selected ([#3419](https://github.com/elastic/eui/pull/3419)) +- Fixed `popoverPlacement` default value for `EuiDatePicker` ([#3427](https://github.com/elastic/eui/pull/3427)) ## [`23.1.0`](https://github.com/elastic/eui/tree/v23.1.0) diff --git a/src/components/date_picker/date_picker.tsx b/src/components/date_picker/date_picker.tsx index 8c06e7457e0..478b50e92ce 100644 --- a/src/components/date_picker/date_picker.tsx +++ b/src/components/date_picker/date_picker.tsx @@ -119,7 +119,7 @@ export class EuiDatePicker extends Component<_EuiDatePickerProps> { showIcon: true, showTimeSelect: false, timeFormat: euiDatePickerDefaultTimeFormat, - popoverPlacement: 'bottom-start', + popoverPlacement: 'bottom-start' as _EuiDatePickerProps['popoverPlacement'], }; render() {