Skip to content

Commit 4312f19

Browse files
frdclavLFDanLudannify
authored
#2610: update useMenuTrigger.mdx to pass menuProps directly to MenuPo… (#2642)
* #2610: update useMenuTrigger.mdx to pass menuProps directly to MenuPopup instead of domProps * #2610: update change to pass in aria-label * merge menuProps into props instead of domProps * removing extraneous aria-label Co-authored-by: Daniel Lu <[email protected]> Co-authored-by: Danni <[email protected]>
1 parent f77299e commit 4312f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function MenuButton(props) {
120120
{state.isOpen &&
121121
<MenuPopup
122122
{...props}
123-
domProps={menuProps}
123+
{...menuProps}
124124
autoFocus={state.focusStrategy}
125125
onClose={() => state.close()} />
126126
}

0 commit comments

Comments
 (0)