diff --git a/CHANGELOG.md b/CHANGELOG.md index 353f93b2487..9fad37f6263 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added `apmTrace` icon to `EuiIcon` set ([#1263](https://github.com/elastic/eui/pull/1263)) +- Added `compressed` prop to `EuiComboBox` ([#1258](https://github.com/elastic/eui/pull/1258)) -No public interface changes since `4.6.1`. +**Bug fixes** + +- `EuiComboBox` no longer throws a _Maximum update depth exceeded_ error when used in popovers/modals ([#1258](https://github.com/elastic/eui/pull/1258)) +- `Escape` key now closes `EuiComboBox` options list ([#1258](https://github.com/elastic/eui/pull/1258)) ## [`4.6.1`](https://github.com/elastic/eui/tree/v4.6.1) diff --git a/src-docs/src/views/combo_box/combo_box_example.js b/src-docs/src/views/combo_box/combo_box_example.js index 9ae64d90d9d..0a94b03ec21 100644 --- a/src-docs/src/views/combo_box/combo_box_example.js +++ b/src-docs/src/views/combo_box/combo_box_example.js @@ -11,6 +11,7 @@ import { } from '../../components'; import { + EuiLink, EuiCallOut, EuiCode, EuiComboBox, @@ -129,7 +130,7 @@ export const ComboBoxExample = { }], text: (

- EuiComboBoxList uses react-virtualized{' '} + EuiComboBoxList uses react-virtualized{' '} to only render visible options to be super fast no matter how many options there are.

), diff --git a/src-docs/src/views/form_layouts/form_compressed.js b/src-docs/src/views/form_layouts/form_compressed.js index cd57b2bbbe3..126643d5013 100644 --- a/src-docs/src/views/form_layouts/form_compressed.js +++ b/src-docs/src/views/form_layouts/form_compressed.js @@ -5,6 +5,7 @@ import React, { import { EuiButton, EuiCheckboxGroup, + EuiComboBox, EuiFieldText, EuiForm, EuiFormRow, @@ -49,6 +50,7 @@ export default class extends Component { label: 'Option three', }], radioIdSelected: `${idPrefix}5`, + comboBoxSelectionOptions: [], }; } @@ -106,6 +108,21 @@ export default class extends Component { + + this.setState({ comboBoxSelectionOptions })} + /> + +