Skip to content

Commit

Permalink
Fix selector
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 9, 2023
1 parent 4dc9967 commit af7d477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2842,12 +2842,12 @@ export function __unstableHasActiveBlockOverlayActive( state, clientId ) {
}

export function __unstableIsWithinBlockOverlay( state, clientId ) {
let parent = state.blocks.parents[ clientId ];
let parent = state.blocks.parents.get( clientId );
while ( !! parent ) {
if ( __unstableHasActiveBlockOverlayActive( state, parent ) ) {
return true;
}
parent = state.blocks.parents[ parent ];
parent = state.blocks.parents.get( parent );
}
return false;
}
9 changes: 0 additions & 9 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
color: $white;
display: flex;
flex-direction: column;

&:not(.is-edit-mode) {
// Ideally, this component shouldn't render in edit mode
// but it happens sporadically, this is a hack
// to prevent it from showing up in view mode.
.block-editor-block-list__insertion-point {
display: none;
}
}
}

.edit-site-layout__hub {
Expand Down

0 comments on commit af7d477

Please sign in to comment.