From 3c7ffdf19a5bd86b572f255ca8c9a2c82418fdb8 Mon Sep 17 00:00:00 2001 From: Alireza Date: Sun, 8 Dec 2024 00:42:43 +0100 Subject: [PATCH] docs(Tree): fix a keyboard navigation issue in tree stories if `title` is set on `Item`, the default getItemCollection method assumes the item's children contain child nodes, and sets hasChildNodes to `true`. --- packages/jui/src/Tree/Tree.stories.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/jui/src/Tree/Tree.stories.tsx b/packages/jui/src/Tree/Tree.stories.tsx index 9cb6b2ac..db81630b 100644 --- a/packages/jui/src/Tree/Tree.stories.tsx +++ b/packages/jui/src/Tree/Tree.stories.tsx @@ -94,7 +94,11 @@ export const Dynamic: StoryFn = () => { onSelectionChange={setSelectedKeys} > {(item) => ( - + {item.name} )}