File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
import { classNames , SlotProvider , useIsMobileDevice } from '@react-spectrum/utils' ;
14
+ import { DismissButton } from '@react-aria/overlays' ;
14
15
import helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css' ;
15
16
import { ItemProps } from '@react-types/shared' ;
16
17
import { MenuDialogContext , useMenuStateContext } from './context' ;
@@ -49,7 +50,9 @@ function MenuDialogTrigger<T>(props: ItemProps<T> & {isUnavailable?: boolean, ta
49
50
{
50
51
isMobile ? (
51
52
< Modal state = { state } isDismissable >
53
+ < DismissButton onDismiss = { state . close } />
52
54
{ content }
55
+ < DismissButton onDismiss = { state . close } />
53
56
</ Modal >
54
57
) : (
55
58
< Popover state = { state } triggerRef = { triggerRef } placement = "end top" hideArrow offset = { - 10 } isNonModal shouldContainFocus = { false } > { content } </ Popover >
You can’t perform that action at this time.
0 commit comments