Skip to content

Commit

Permalink
Refactor #1559
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 10, 2020
1 parent ecfd219 commit 58f15f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tree/UITreeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +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') {

if (!DomHandler.hasClass(nodeElement, 'p-treenode')) {
return;
}

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

0 comments on commit 58f15f5

Please sign in to comment.