From da4196cbc471d604652be738b5421a41b2aaaa97 Mon Sep 17 00:00:00 2001 From: Radu Iamandi Date: Tue, 3 Jun 2025 18:09:49 +0300 Subject: [PATCH] fix Tree keyboard navigation when item expands --- components/lib/tree/UITreeNode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/tree/UITreeNode.js b/components/lib/tree/UITreeNode.js index 2c641292e8..dba0d30b01 100644 --- a/components/lib/tree/UITreeNode.js +++ b/components/lib/tree/UITreeNode.js @@ -430,13 +430,13 @@ export const UITreeNode = React.memo((props) => { }; const onArrowRight = (event) => { - if (isLeaf || expanded) { + if (isLeaf) { return; } event.currentTarget.tabIndex = -1; - expand(event, true); + expand(event, expanded); }; const onArrowLeft = (event) => {