Skip to content

Commit

Permalink
add component to drop area element.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Croney committed Sep 3, 2015
1 parent e408a3e commit 5d7e16f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion decorators/component-list.js
Expand Up @@ -21,7 +21,9 @@ function addComponent(pane, field, name) {

return edit.addToParentList({ref: newRef, parentField: field.path, parentRef: field.ref})
.then(function (newEl) {
dom.insertBefore(pane, newEl);
var dropArea = pane.previousElementSibling;

dropArea.appendChild(newEl);
return render.addComponentsHandlers(newEl);
});
});
Expand Down

0 comments on commit 5d7e16f

Please sign in to comment.