From 3e2a8558c15ec7f85ddd2b785ee82f1053885c32 Mon Sep 17 00:00:00 2001 From: Sukhendu Sekhar Guria Date: Mon, 16 Dec 2024 15:11:18 +0530 Subject: [PATCH] Table Block: Add dropdown menu props to ToolsPanel component --- packages/block-library/src/table/edit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-library/src/table/edit.js b/packages/block-library/src/table/edit.js index 1d61bab0787e4..b82cce050d7fa 100644 --- a/packages/block-library/src/table/edit.js +++ b/packages/block-library/src/table/edit.js @@ -57,6 +57,7 @@ import { isEmptyTableSection, } from './state'; import { Caption } from '../utils/caption'; +import { useToolsPanelDropdownMenuProps } from '../utils/hooks'; const ALIGNMENT_CONTROLS = [ { @@ -108,6 +109,7 @@ function TableEdit( { const tableRef = useRef(); const [ hasTableCreated, setHasTableCreated ] = useState( false ); + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); /** * Updates the initial column count used for table creation. @@ -483,6 +485,7 @@ function TableEdit( { foot: [], } ); } } + dropdownMenuProps={ dropdownMenuProps } > hasFixedLayout !== true }