Skip to content

Commit e83d48c

Browse files
committed
fix: set TreeItemChildren prop "parentId" correctly
1 parent 5c37911 commit e83d48c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

next-release-notes.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22

33
- Add `setDomFocus` argument to focus-item methods to provide an escape hatch to set the focus state of an item in RCT
44
without updating the DOM focus. This defaults to true in all existing methods to maintain the current behavior if
5-
it is absent.
5+
it is absent.
6+
7+
### Bug Fixes
8+
9+
- Fix a bug where the `parentId` property in the `renderItemsContainer` render method was incorrectly set to the tree id
10+
for the root container.

packages/core/src/tree/TreeManager.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const TreeManager = (): JSX.Element => {
3535
const treeChildren = (
3636
<>
3737
<MaybeLiveDescription />
38-
<TreeItemChildren depth={0} parentId={treeId}>
38+
<TreeItemChildren depth={0} parentId={rootItem}>
3939
{rootChildren ?? []}
4040
</TreeItemChildren>
4141
<DragBetweenLine treeId={treeId} />

0 commit comments

Comments
 (0)