Skip to content

Commit

Permalink
Fix for clickable bug at the edge of trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosammito authored Feb 13, 2024
1 parent b4c01ef commit 5db79ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const Menu: React.FC<MenuType<any>> = (props) => {

return (
<>
<div ref={triggerRef}>
{menuTrigger ? React.cloneElement(menuTrigger.props.children, {...buttonProps, tabIndex: 1}) : null}
<div ref={triggerRef} {...buttonProps}>
{menuTrigger ? React.cloneElement(menuTrigger.props.children, {tabIndex: 1}) : null}
</div>

{state.isOpen && (
Expand Down Expand Up @@ -133,4 +133,4 @@ export default Object.assign(Menu, {
Shortcut: MenuShortcut,
Section: MenuSection,
Icon: MenuIcon
})
})

0 comments on commit 5db79ea

Please sign in to comment.