diff --git a/CHANGELOG.md b/CHANGELOG.md index a1cd24282cd..4d1b53d3159 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added sizes to `EuiButtonIcon` ([#1145](https://github.com/elastic/eui/pull/1145)) +- Added `singleSelection.asPlainText` prop to `EuiComboBox` ([#1139](https://github.com/elastic/eui/pull/1139)) **Bug fixes** 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 055b577d8b2..9ae64d90d9d 100644 --- a/src-docs/src/views/combo_box/combo_box_example.js +++ b/src-docs/src/views/combo_box/combo_box_example.js @@ -224,8 +224,10 @@ export const ComboBoxExample = { }], text: (

- To only allow the user to select a single option, provide - the singleSelection prop. + To only allow the user to select a single option, provide the{' '} + singleSelection prop. You may want to render the selected option as + plain text instead of pill form. To do this, pass{' '} + {'singleSelection={{ asPlainText: true }}'}

), props: { EuiComboBox }, @@ -257,7 +259,7 @@ export const ComboBoxExample = { }], text: (

- Alternatively, provide thhe noSuggestions prop to hide the suggestions list + Alternatively, provide the noSuggestions prop to hide the suggestions list and only allow the creation of custom options.

), diff --git a/src-docs/src/views/combo_box/single_selection.js b/src-docs/src/views/combo_box/single_selection.js index 18275954aec..43535d036c8 100644 --- a/src-docs/src/views/combo_box/single_selection.js +++ b/src-docs/src/views/combo_box/single_selection.js @@ -48,7 +48,7 @@ export default class extends Component { return (