From 58f15f5c4bffa1281f2b21b73ee2e9101a5b72c8 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 10 Sep 2020 13:22:48 +0300 Subject: [PATCH] Refactor #1559 --- src/components/tree/UITreeNode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tree/UITreeNode.js b/src/components/tree/UITreeNode.js index dc8b27ab4f..7988beabba 100644 --- a/src/components/tree/UITreeNode.js +++ b/src/components/tree/UITreeNode.js @@ -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: