Skip to content

Commit

Permalink
fix: primefaces#6888, Tree: inputText's onChange in nodeTemplate does…
Browse files Browse the repository at this point in the history
… not respond to a space key
  • Loading branch information
ANTONA09 committed Jul 16, 2024
1 parent ff49bcb commit 768e20f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/lib/tree/UITreeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 768e20f

Please sign in to comment.