Skip to content

Commit

Permalink
Allow Page List in Nav Link and Submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Dec 13, 2022
1 parent 3e692b7 commit 7be304a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ export default function NavigationLinkEdit( {
const ALLOWED_BLOCKS = [
'core/navigation-link',
'core/navigation-submenu',
'core/page-list',
];
const DEFAULT_BLOCK = {
name: 'core/navigation-link',
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/navigation-submenu/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ import { name } from './block.json';
import { LinkUI } from '../navigation-link/link-ui';
import { updateAttributes } from '../navigation-link/update-attributes';

const ALLOWED_BLOCKS = [ 'core/navigation-link', 'core/navigation-submenu' ];
const ALLOWED_BLOCKS = [
'core/navigation-link',
'core/navigation-submenu',
'core/page-list',
];

const DEFAULT_BLOCK = {
name: 'core/navigation-link',
Expand Down

0 comments on commit 7be304a

Please sign in to comment.