Skip to content

Commit

Permalink
Resolved blockId to parent block (if field id). Fixes jmoenig#121 (jm…
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb authored Dec 22, 2016
1 parent 1814406 commit 959a0da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,9 @@ ActionManager.OwnerFor.moveBlock = function(block, target) {
// Base this off the target since the block could be new...
blockId = (typeof target) === 'string' ? target : target.element;

// Get the parent block (if referencing a field)
blockId = blockId.split('/')[0];

if (this._customBlocks[blockId]) {
return blockId;
} else {
Expand Down

0 comments on commit 959a0da

Please sign in to comment.