Skip to content

Commit

Permalink
🫧 Prevent event from bubbling on table row (#6351)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk authored Jun 3, 2024
1 parent c382667 commit b3f307b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,12 @@ export const TokenPortfolioUtils = ({
const [ref, setRef] = useState<HTMLButtonElement | null>(null)

return (
<RightAlignedCell>
<RightAlignedCell
onClick={(e) => {
e.stopPropagation()
e.preventDefault()
}}
>
<Button ref={setRef} icon={<SvgActionMore />} variant="tertiary" size="small" />
<ContextMenu
appendTo={document.body}
Expand Down

0 comments on commit b3f307b

Please sign in to comment.