Skip to content

Commit

Permalink
fix: use dropdown menu props (WordPress#68015)
Browse files Browse the repository at this point in the history
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2024
1 parent 0fb8403 commit 068660c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/navigation-submenu/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
getColors,
getNavigationChildBlockProps,
} from '../navigation/edit/utils';
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';

const ALLOWED_BLOCKS = [
'core/navigation-link',
Expand Down Expand Up @@ -153,6 +154,7 @@ export default function NavigationSubmenuEdit( {
const isDraggingWithin = useIsDraggingWithin( listItemRef );
const itemLabelPlaceholder = __( 'Add text…' );
const ref = useRef();
const dropdownMenuProps = useToolsPanelDropdownMenuProps();

const {
parentCount,
Expand Down Expand Up @@ -394,6 +396,7 @@ export default function NavigationSubmenuEdit( {
rel: '',
} );
} }
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
label={ __( 'Text' ) }
Expand Down

0 comments on commit 068660c

Please sign in to comment.