Skip to content

Commit

Permalink
Update UITreeNode.js
Browse files Browse the repository at this point in the history
For other elements in the tree, like text boxes in the tree, we should avoid this event.
After adding this we are able to move the cursor in the text box with in the tree.
  • Loading branch information
ru4sam326 authored Jun 4, 2020
1 parent af6745a commit 3120bf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/tree/UITreeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ export class UITreeNode extends Component {
}

const nodeElement = event.target.parentElement;

// For other elements in the tree like text boxes in the tree, we should avoid this event
if (nodeElement.nodeName !== 'P-TREENODE') {
return;
}

switch (event.which) {
//down arrow
case 40:
Expand Down

0 comments on commit 3120bf0

Please sign in to comment.