Skip to content

Commit

Permalink
Always show drag handle for non-top-level blocks, fixes issue WordPre…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdesigned committed Apr 17, 2019
1 parent 1df3021 commit c458bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export class BlockMover extends Component {
}

render() {
const { onMoveUp, onMoveDown, isFirst, isLast, isDraggable, onDragStart, onDragEnd, clientIds, blockElementId, blockType, firstIndex, isLocked, instanceId, isHidden } = this.props;
const { onMoveUp, onMoveDown, isFirst, isLast, isDraggable, onDragStart, onDragEnd, clientIds, blockElementId, blockType, firstIndex, isLocked, instanceId, isHidden, rootClientId } = this.props;
const { isFocused } = this.state;
const blocksCount = castArray( clientIds ).length;
if ( isLocked || ( isFirst && isLast ) ) {
if ( isLocked || ( isFirst && isLast && ! rootClientId ) ) {
return null;
}

Expand Down

0 comments on commit c458bd9

Please sign in to comment.