Skip to content

Commit

Permalink
Fix drop confirmation example error when dragging an item to the root…
Browse files Browse the repository at this point in the history
… of the tree
  • Loading branch information
Niels Dequeker committed Dec 20, 2015
1 parent 6674c2d commit ebfa8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/js/drop-confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$scope.treeOptions = {
beforeDrop : function (e) {
var sourceValue = e.source.nodeScope.$modelValue.value,
destValue = e.dest.nodesScope.node.value,
destValue = e.dest.nodesScope.node ? e.dest.nodesScope.node.value : undefined,
modalInstance;

// display modal if the node is being dropped into a smaller container
Expand Down

0 comments on commit ebfa8fd

Please sign in to comment.