Skip to content

Commit

Permalink
fix: set TreeItemChildren prop "parentId" correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbach committed Mar 2, 2024
1 parent 5c37911 commit e83d48c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion next-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

- Add `setDomFocus` argument to focus-item methods to provide an escape hatch to set the focus state of an item in RCT
without updating the DOM focus. This defaults to true in all existing methods to maintain the current behavior if
it is absent.
it is absent.

### Bug Fixes

- Fix a bug where the `parentId` property in the `renderItemsContainer` render method was incorrectly set to the tree id
for the root container.
2 changes: 1 addition & 1 deletion packages/core/src/tree/TreeManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const TreeManager = (): JSX.Element => {
const treeChildren = (
<>
<MaybeLiveDescription />
<TreeItemChildren depth={0} parentId={treeId}>
<TreeItemChildren depth={0} parentId={rootItem}>
{rootChildren ?? []}
</TreeItemChildren>
<DragBetweenLine treeId={treeId} />
Expand Down

0 comments on commit e83d48c

Please sign in to comment.