Skip to content

Commit

Permalink
Restore appender to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed May 7, 2020
1 parent 10c6bdf commit 2d53413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ function NavigationLinkEdit( {
<InnerBlocks
allowedBlocks={ [ 'core/navigation-link' ] }
renderAppender={
hasDescendants && isSelected
( hasDescendants && isSelected ) ||
isParentOfSelectedBlock
? InnerBlocks.DefaultAppender
: false
}
Expand Down
4 changes: 0 additions & 4 deletions packages/block-library/src/navigation/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import BlockColorsStyleSelector from './block-colors-selector';
import * as navIcons from './icons';

function Navigation( {
isSelected,
attributes,
clientId,
fontSize,
Expand Down Expand Up @@ -264,9 +263,6 @@ function Navigation( {
<InnerBlocks
ref={ ref }
allowedBlocks={ [ 'core/navigation-link' ] }
renderAppender={
isSelected ? InnerBlocks.DefaultAppender : false
}
templateInsertUpdatesSelection={ false }
__experimentalMoverDirection={
attributes.orientation || 'horizontal'
Expand Down

0 comments on commit 2d53413

Please sign in to comment.