[Graph] Fix query bar autocomplete (#140963) (#141383)

* [Graph] Fix unified search dep

* [Graph] Fix after the merge

* [Graph] Fix autocomplete by excluding filtering by time range

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 03a3446111)

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
This commit is contained in:
Kibana Machine 2022-09-22 07:27:07 -06:00 committed by GitHub
parent 9ca3d03394
commit 8df4c1fdb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,6 +163,7 @@ export function SearchBarComponent(props: SearchBarStateProps & SearchBarProps)
</EuiFlexItem>
<EuiFlexItem>
<QueryStringInput
timeRangeForSuggestionsOverride={false} // to don't filter suggestions by the global time range
disableAutoFocus
bubbleSubmitEvent
indexPatterns={currentIndexPattern ? [currentIndexPattern] : []}