From 06b51b20f3faf3ee1daf9ea246ed2fcf7ac54a35 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Tue, 18 Aug 2020 15:25:03 +0200 Subject: [PATCH] Use prefix search invis editor field/agg combo box --- src/plugins/vis_default_editor/public/components/agg_select.tsx | 1 + .../vis_default_editor/public/components/controls/field.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/plugins/vis_default_editor/public/components/agg_select.tsx b/src/plugins/vis_default_editor/public/components/agg_select.tsx index 8d03940a92d3..04b5e48c65e8 100644 --- a/src/plugins/vis_default_editor/public/components/agg_select.tsx +++ b/src/plugins/vis_default_editor/public/components/agg_select.tsx @@ -157,6 +157,7 @@ function DefaultEditorAggSelect({ isClearable={false} isInvalid={showValidation ? !isValid : false} fullWidth={true} + sortMatchesBy="startsWith" compressed /> diff --git a/src/plugins/vis_default_editor/public/components/controls/field.tsx b/src/plugins/vis_default_editor/public/components/controls/field.tsx index 24d94c2b18fe..bfc4f881f845 100644 --- a/src/plugins/vis_default_editor/public/components/controls/field.tsx +++ b/src/plugins/vis_default_editor/public/components/controls/field.tsx @@ -124,6 +124,7 @@ function FieldParamEditor({ onChange={onChange} onBlur={setTouched} onSearchChange={onSearchChange} + sortMatchesBy="startsWith" data-test-subj="visDefaultEditorField" fullWidth={true} />