SaveDashboard: Fix for folder picker menu not being visible outside modal (#24296)

* Change z-index

* Add position and width to menuPortal
This commit is contained in:
Tobias Skarhed 2020-05-05 22:21:34 +02:00 committed by GitHub
parent 21bd9dacd6
commit 1947683ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,9 @@ export function SelectBase<T>({
}}
styles={{
...resetSelectStyles(),
menuPortal: () => ({
menuPortal: ({ position, width }: any) => ({
position,
width,
zIndex: theme.zIndex.dropdown,
}),
//These are required for the menu positioning to function