Skip to content

Commit 07acce2

Browse files
authored
Fix useMenu complex items example (#3743)
1 parent d311731 commit 07acce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/menu/docs/useMenu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ function MenuButton(props) {
525525
<span aria-hidden="true" style={{paddingLeft: 5}}>▼</span>
526526
</Button>
527527
{state.isOpen &&
528-
<Popover isOpen={state.isOpen} onClose={state.close}>
528+
<Popover state={state} triggerRef={ref} placement="bottom start">
529529
<Menu
530530
{...props}
531531
{...menuProps} />

0 commit comments

Comments
 (0)