From 1947683ad0d1aba30193325353812e5cf1aff7a1 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Tue, 5 May 2020 22:21:34 +0200 Subject: [PATCH] SaveDashboard: Fix for folder picker menu not being visible outside modal (#24296) * Change z-index * Add position and width to menuPortal --- packages/grafana-ui/src/components/Select/SelectBase.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Select/SelectBase.tsx b/packages/grafana-ui/src/components/Select/SelectBase.tsx index 7d655117845..a386c21c3b8 100644 --- a/packages/grafana-ui/src/components/Select/SelectBase.tsx +++ b/packages/grafana-ui/src/components/Select/SelectBase.tsx @@ -312,7 +312,9 @@ export function SelectBase({ }} styles={{ ...resetSelectStyles(), - menuPortal: () => ({ + menuPortal: ({ position, width }: any) => ({ + position, + width, zIndex: theme.zIndex.dropdown, }), //These are required for the menu positioning to function