Skip to content

Commit

Permalink
Fix column moved in itself error (#13941)
Browse files Browse the repository at this point in the history
* Fix column moved in itself error

* Update packages/editor/src/components/block-drop-zone/index.js

Co-Authored-By: Naerriel <[email protected]>
  • Loading branch information
Naerriel authored and gziolo committed Feb 19, 2019
1 parent 23e59d1 commit 7858cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/block-drop-zone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class BlockDropZone extends Component {

if ( ! isBlockDropType( type ) ||
isSameBlock( srcClientId, dstClientId ) ||
isSrcBlockAnAncestorOfDstBlock( srcClientId, dstClientId ) ) {
isSrcBlockAnAncestorOfDstBlock( srcClientId, dstClientId || dstRootClientId ) ) {
return;
}

Expand Down

0 comments on commit 7858cb2

Please sign in to comment.