Skip to content

Commit

Permalink
Fixed #9108 - Redirect to data.com when dropping on datapoint with Tr…
Browse files Browse the repository at this point in the history
…eeComponent with Firefox
  • Loading branch information
cagataycivici committed Sep 2, 2020
1 parent 84a1275 commit 40e8232
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ export class UITreeNode implements OnInit {

onDropNode(event) {
if (this.tree.droppableNodes && this.node.droppable !== false) {
event.preventDefault();
event.stopPropagation();
let dragNode = this.tree.dragNode;

if (this.tree.allowDrop(dragNode, this.node, this.tree.dragNodeScope)) {
Expand Down Expand Up @@ -341,6 +339,8 @@ export class UITreeNode implements OnInit {
}
}

event.preventDefault();
event.stopPropagation();
this.draghoverNode = false;
}

Expand All @@ -367,8 +367,6 @@ export class UITreeNode implements OnInit {
subNodes: event.dropNode.parent ? event.dropNode.parent.children : this.tree.value,
index: dragNodeIndex
});


}

onDropNodeDragEnter(event) {
Expand Down

0 comments on commit 40e8232

Please sign in to comment.