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 @@ -51,6 +51,7 @@ export function DropdownMenu(props: {
51
51
< RadixDropdownMenu . Portal >
52
52
< RadixDropdownMenu . Content
53
53
data-testid = "dropdown-menu"
54
+ hideWhenDetached
54
55
collisionPadding = { 8 }
55
56
onMouseEnter = { ( ) => setHovered ( true ) }
56
57
onMouseLeave = { ( ) => setHovered ( false ) }
@@ -160,7 +161,11 @@ export function DropdownSubMenu(props: { children: React.ReactNode; label: React
160
161
< Icon icon = "chevron-right" className = "size-3 shrink-0 opacity-6" />
161
162
</ RadixDropdownMenu . SubTrigger >
162
163
< RadixDropdownMenu . Portal >
163
- < RadixDropdownMenu . SubContent collisionPadding = { 8 } className = "z-40 animate-present" >
164
+ < RadixDropdownMenu . SubContent
165
+ hideWhenDetached
166
+ collisionPadding = { 8 }
167
+ className = "z-40 animate-present"
168
+ >
164
169
< div className = "flex max-h-80 min-w-40 max-w-[40vw] flex-col gap-1 overflow-auto rounded-lg straight-corners:rounded-sm bg-tint-base p-2 shadow-lg ring-1 ring-tint-subtle sm:min-w-52 sm:max-w-80" >
165
170
{ children }
166
171
</ div >
You can’t perform that action at this time.
0 commit comments