From f32a41b048f267ce7325f50f96d105ec898e9813 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Sat, 2 Aug 2025 10:26:27 -0600 Subject: [PATCH] Fix table node --- .../ui/report/elements/TableNode/TableNode.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/ui/report/elements/TableNode/TableNode.tsx b/apps/web/src/components/ui/report/elements/TableNode/TableNode.tsx index 136726924..3c7633d08 100644 --- a/apps/web/src/components/ui/report/elements/TableNode/TableNode.tsx +++ b/apps/web/src/components/ui/report/elements/TableNode/TableNode.tsx @@ -44,7 +44,8 @@ import { BucketPaint2, SquareLayoutGrid4, Trash2, - Xmark + Xmark, + SquareLayoutGrid } from '@/components/ui/icons'; import { type TElement, @@ -183,7 +184,7 @@ function TableFloatingToolbar({ children, ...props }: React.ComponentProps - + @@ -264,9 +265,12 @@ function TableFloatingToolbar({ children, ...props }: React.ComponentProps -) { +// TableBordersDropdownMenuContent is now a forwardRef functional component +const TableBordersDropdownMenuContent = React.forwardRef< + React.ElementRef, + React.ComponentProps +>(function TableBordersDropdownMenuContent(props, ref) { + // Get the current editor instance const editor = useEditorRef(); const { getOnSelectTableBorder, @@ -333,7 +337,7 @@ function TableBordersDropdownMenuContent( ); -} +}); function ColorDropdownMenu({ children, tooltip }: { children: React.ReactNode; tooltip: string }) { const [open, setOpen] = React.useState(false);