From 8b5c699bd7f90ac76c3859b9543abb10c008a8df Mon Sep 17 00:00:00 2001 From: celine Date: Wed, 4 Feb 2026 00:25:11 -0500 Subject: [PATCH] fwd refs on action Button --- components/ActionBar/ActionButton.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/components/ActionBar/ActionButton.tsx b/components/ActionBar/ActionButton.tsx index 17dac49e..d093d8ff 100644 --- a/components/ActionBar/ActionButton.tsx +++ b/components/ActionBar/ActionButton.tsx @@ -7,8 +7,9 @@ import { PopoverOpenContext } from "components/Popover/PopoverContext"; type ButtonProps = Omit; -export const ActionButton = ( - _props: ButtonProps & { +export const ActionButton = forwardRef< + HTMLButtonElement, + ButtonProps & { id?: string; icon: React.ReactNode; label: React.ReactNode; @@ -19,8 +20,8 @@ export const ActionButton = ( subtext?: string; labelOnMobile?: boolean; z?: boolean; - }, -) => { + } +>((_props, ref) => { let { id, icon, @@ -50,6 +51,7 @@ export const ActionButton = ( return ( ); -}; +}); +ActionButton.displayName = "ActionButton"; -- 2.51.2