diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 688e0fdcd39..31f2b5a703a 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -566,10 +566,18 @@ export class UITreeNode implements OnInit { //enter case 'Enter': - case 'Space': case 'NumpadEnter': this.onEnter(event); break; + + //space + case 'Space': + const nodeName = event.target instanceof HTMLElement && event.target.nodeName; + if (!['INPUT'].includes(nodeName)) { + this.onEnter(event); + } + break; + //tab case 'Tab': this.setAllNodesTabIndexes();