Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiSuggest] Prevents popover to open when empty array is passed into suggestions #4349

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Fixed `EuiErrorBoundary` error message not showing in non-Chromium browsers ([#4324](https://github.com/elastic/eui/pull/4324))
- Fixed `EuiToolTip` closing during initial positioning period ([#4327](https://github.com/elastic/eui/pull/4327))
- Added `!default` to SASS variables of `EuiCollapsibleNav` ([#4335](https://github.com/elastic/eui/pull/4335))
- Prevented `EuiSuggest` popover to open when an empty array is passed into `suggestions` prop ([#4349](https://github.com/elastic/eui/pull/4349))
elizabetdev marked this conversation as resolved.
Show resolved Hide resolved

**Theme: Amsterdam**

Expand Down
2 changes: 1 addition & 1 deletion src/components/suggest/suggest_input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const EuiSuggestInput: FunctionComponent<EuiSuggestInputProps> = (
<EuiInputPopover
className={classes}
input={customInput}
isOpen={isPopoverOpen}
isOpen={suggestions.length > 0 && isPopoverOpen}
elizabetdev marked this conversation as resolved.
Show resolved Hide resolved
panelPaddingSize="none"
fullWidth
closePopover={closePopover}>
Expand Down