diff --git a/packages/react/src/components/ComboBox/ComboBox.js b/packages/react/src/components/ComboBox/ComboBox.js index d24f558fba56..11c6b28d02af 100644 --- a/packages/react/src/components/ComboBox/ComboBox.js +++ b/packages/react/src/components/ComboBox/ComboBox.js @@ -337,6 +337,7 @@ export default class ComboBox extends React.Component { inputValue={this.state.inputValue || ''} itemToString={itemToString} defaultSelectedItem={initialSelectedItem} + inputId={id} selectedItem={selectedItem}> {({ getToggleButtonProps, @@ -367,7 +368,6 @@ export default class ComboBox extends React.Component { light={light} size={size}> {isOpen && ( - + {this.filterItems(items, itemToString, inputValue).map( (item, index) => { const itemProps = getItemProps({ item, index }); diff --git a/packages/react/src/components/Dropdown/Dropdown.js b/packages/react/src/components/Dropdown/Dropdown.js index 52824742a313..f5c52efd1a96 100644 --- a/packages/react/src/components/Dropdown/Dropdown.js +++ b/packages/react/src/components/Dropdown/Dropdown.js @@ -125,12 +125,12 @@ function Dropdown({ invalid={invalid} invalidText={invalidText} light={light} - isOpen={isOpen}> + isOpen={isOpen} + id={id}> {invalid && ( )}