Skip to content

Commit

Permalink
Ensure orientation prop is correctly specified on BlockMover (#23640)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored Jul 2, 2020
1 parent 9eeed8a commit 0e9c21f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/components/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class BlockMover extends Component {
isLocked,
isHidden,
rootClientId,
__experimentalOrientation: orientation,
orientation,
} = this.props;
const { isFocused } = this.state;
if ( isLocked || ( isFirst && isLast && ! rootClientId ) ) {
Expand Down Expand Up @@ -101,6 +101,7 @@ export default withSelect( ( select, { clientIds } ) => {
const {
getBlock,
getBlockIndex,
getBlockListSettings,
getTemplateLock,
getBlockOrder,
getBlockRootClientId,
Expand All @@ -125,5 +126,6 @@ export default withSelect( ( select, { clientIds } ) => {
firstIndex,
isFirst,
isLast,
orientation: getBlockListSettings( rootClientId )?.orientation,
};
} )( BlockMover );

0 comments on commit 0e9c21f

Please sign in to comment.