Skip to content

Commit

Permalink
Merge pull request #1393 from ru4sam326/patch-1
Browse files Browse the repository at this point in the history
Fixed #1559 - The left and right arrow keys not working on input elements inside Tree
  • Loading branch information
mertsincan authored Sep 10, 2020
2 parents d3bfc45 + 3120bf0 commit ecfd219
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 @@ -163,7 +163,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 ecfd219

Please sign in to comment.