File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export interface SelectProps<T extends SelectItemNode> {
91
91
disableEllipsis ?: boolean
92
92
items ?: T [ ]
93
93
value ?: string | null
94
+ zIndex ?: number
94
95
onChange ?: ( value : T ) => void
95
96
render ?: ( value : T ) => ReactNode
96
97
ListItemProps ?: Partial < PP < 'div' , ListItemProps > >
@@ -106,6 +107,7 @@ export const Select = forwardRefWithGenerics(
106
107
disableEllipsis = false ,
107
108
items = [ ] ,
108
109
value,
110
+ zIndex,
109
111
onChange,
110
112
render = ( e ) => ( typeof e === 'string' ? e : e . value ) ,
111
113
ListItemProps,
@@ -279,7 +281,10 @@ export const Select = forwardRefWithGenerics(
279
281
< FloatingPortal >
280
282
< AnimatePresence >
281
283
{ open && (
282
- < FloatingOverlay lockScroll = { ! touch } style = { { zIndex : 1 } } >
284
+ < FloatingOverlay
285
+ lockScroll = { ! touch }
286
+ style = { { zIndex : typeof zIndex === 'number' ? zIndex : 1 } }
287
+ >
283
288
< FloatingFocusManager context = { context } >
284
289
< SelectItemsWrapper
285
290
style = { {
You can’t perform that action at this time.
0 commit comments