From bb2ecb14689127ccd62b6b3539818c4973c601fa Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 14 Dec 2022 09:51:04 +0000 Subject: [PATCH] Influx: Query segment menus now position correctly near the bottom of the screen (#60087) * only open the menu once options are loaded for better positioning * use !loadState.loading instead of Boolean(loadState.value) --- .../datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx index ad2abab2a39..c1ba0c6357b 100644 --- a/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx +++ b/public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/Seg.tsx @@ -111,7 +111,7 @@ const SelSingleLoad = ({ loadOptions, allowCustomValue, onChange, onClose }: Sel isLoading={loadState.loading} formatCreateLabel={formatCreateLabel} autoFocus - isOpen + isOpen={!loadState.loading} onCloseMenu={onClose} allowCustomValue={allowCustomValue} options={loadState.value ?? []}