Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const BlockMoverButton = forwardRef(
? clientIds
: [ clientIds ];
const blocksCount = normalizedClientIds.length;
const { disabled } = props;

const {
blockType,
Expand Down Expand Up @@ -99,9 +98,7 @@ const BlockMoverButton = forwardRef(

return {
blockType: block ? getBlockType( block.name ) : null,
isDisabled:
disabled ||
( direction === 'up' ? isFirstBlock : isLastBlock ),
isDisabled: direction === 'up' ? isFirstBlock : isLastBlock,
rootClientId: blockRootClientId,
firstIndex: firstBlockIndex,
isFirst: isFirstBlock,
Expand Down
9 changes: 1 addition & 8 deletions packages/block-editor/src/components/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ import BlockDraggable from '../block-draggable';
import { BlockMoverUpButton, BlockMoverDownButton } from './button';
import { store as blockEditorStore } from '../../store';

function BlockMover( {
clientIds,
hideDragHandle,
isBlockMoverUpButtonDisabled,
isBlockMoverDownButtonDisabled,
} ) {
function BlockMover( { clientIds, hideDragHandle } ) {
const {
canMove,
rootClientId,
Expand Down Expand Up @@ -104,7 +99,6 @@ function BlockMover( {
<ToolbarItem>
{ ( itemProps ) => (
<BlockMoverUpButton
disabled={ isBlockMoverUpButtonDisabled }
clientIds={ clientIds }
{ ...itemProps }
/>
Expand All @@ -113,7 +107,6 @@ function BlockMover( {
<ToolbarItem>
{ ( itemProps ) => (
<BlockMoverDownButton
disabled={ isBlockMoverDownButtonDisabled }
clientIds={ clientIds }
{ ...itemProps }
/>
Expand Down
Loading