Skip to content

Commit 7c96adb

Browse files
committed
refactor(aria/tree): underscore pattern props only for internal usage
1 parent 2173ee8 commit 7c96adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aria/tree/tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export class TreeItem<V> extends DeferredContentAware implements OnInit, OnDestr
363363
...this,
364364
tree: treePattern,
365365
parent: parentPattern,
366-
children: computed(() => this._group()?.children() ?? []),
366+
children: computed(() => this._group()?._childPatterns() ?? []),
367367
hasChildren: computed(() => !!this._group()),
368368
element: () => this.element,
369369
searchTerm: () => this.searchTerm() ?? '',
@@ -423,7 +423,7 @@ export class TreeItemGroup<V> implements OnInit, OnDestroy {
423423
private readonly _unorderedItems = signal(new Set<TreeItem<V>>());
424424

425425
/** Child items within this group. */
426-
readonly children = computed<TreeItemPattern<V>[]>(() =>
426+
readonly _childPatterns = computed<TreeItemPattern<V>[]>(() =>
427427
[...this._unorderedItems()].sort(sortDirectives).map(c => c._pattern),
428428
);
429429

0 commit comments

Comments
 (0)