Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/components/suggest/suggest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ type _EuiSuggestProps = CommonProps &
* Default is `60vh`
*/
maxHeight?: CSSProperties['maxHeight'];

/**
* Control whether or not options get filtered internally or if consumer will filter.
* Default `false`
*/
isPreFiltered?: boolean;
};

export type EuiSuggestProps = _EuiSuggestProps &
Expand Down Expand Up @@ -138,6 +144,7 @@ export const EuiSuggest: FunctionComponent<EuiSuggestProps> = ({
id,
'aria-label': ariaLabel,
'aria-labelledby': labelId,
isPreFiltered = false,
isVirtualized = false,
fullWidth = true,
maxHeight = '60vh',
Expand Down Expand Up @@ -297,6 +304,7 @@ export const EuiSuggest: FunctionComponent<EuiSuggestProps> = ({
isVirtualized,
}}
searchable
isPreFiltered={isPreFiltered}
searchProps={{
id,
append: appendArray.length ? appendArray : undefined,
Expand Down
2 changes: 2 additions & 0 deletions upcoming_changelogs/5930.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Updated `EuiSuggest` to accept the `isPreFiltered` prop