From 8b38b70e00313193c89fef19a36f34a039281b0c Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Wed, 7 Apr 2021 10:18:30 +0200 Subject: [PATCH] FolderPicker: Prevent dropdown menu from disappearing off screen (#32603) * fix(folderpicker): remove position fixed so menu works in panel editor for dashlist & alertlist * test(folderpicker): update snapshot --- public/app/core/components/Select/FolderPicker.tsx | 1 - .../components/Select/__snapshots__/FolderPicker.test.tsx.snap | 1 - 2 files changed, 2 deletions(-) diff --git a/public/app/core/components/Select/FolderPicker.tsx b/public/app/core/components/Select/FolderPicker.tsx index f204a35da05..25c8f97c8d3 100644 --- a/public/app/core/components/Select/FolderPicker.tsx +++ b/public/app/core/components/Select/FolderPicker.tsx @@ -161,7 +161,6 @@ export class FolderPicker extends PureComponent { loadOptions={this.debouncedSearch} onChange={this.onFolderChange} onCreateOption={this.createNewFolder} - menuPosition="fixed" /> ); diff --git a/public/app/core/components/Select/__snapshots__/FolderPicker.test.tsx.snap b/public/app/core/components/Select/__snapshots__/FolderPicker.test.tsx.snap index 98b9a3bfde6..b8cef019ee4 100644 --- a/public/app/core/components/Select/__snapshots__/FolderPicker.test.tsx.snap +++ b/public/app/core/components/Select/__snapshots__/FolderPicker.test.tsx.snap @@ -10,7 +10,6 @@ exports[`FolderPicker should render 1`] = ` defaultValue={Object {}} loadOptions={[Function]} loadingMessage="Loading folders..." - menuPosition="fixed" onChange={[Function]} onCreateOption={[Function]} value={Object {}}