From 768e20f988b341ffc589d7042cabdd37860f627a Mon Sep 17 00:00:00 2001 From: ANTONA09 Date: Tue, 16 Jul 2024 12:46:53 +0530 Subject: [PATCH] fix: #6888, Tree: inputText's onChange in nodeTemplate does not respond to a space key --- components/lib/tree/UITreeNode.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/lib/tree/UITreeNode.js b/components/lib/tree/UITreeNode.js index 8bbe59dd22..788c49f4bc 100644 --- a/components/lib/tree/UITreeNode.js +++ b/components/lib/tree/UITreeNode.js @@ -355,11 +355,17 @@ export const UITreeNode = React.memo((props) => { case 'Enter': case 'NumpadEnter': - case 'Space': onEnterKey(event); break; + case 'Space': + if(!['INPUT'].includes(event.target.nodeName)) { + onEnterKey(event); + } + + break; + default: break; }