Skip to content

Commit c5e2921

Browse files
committed
refactor(aria/tree): rename allItems to items
1 parent 6ac0c18 commit c5e2921

File tree

3 files changed

+212
-212
lines changed

3 files changed

+212
-212
lines changed

src/aria/private/tree/combobox-tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class ComboboxTreePattern<V>
3232
getActiveItem = () => this.inputs.activeItem();
3333

3434
/** The list of items in the tree. */
35-
items = computed(() => this.inputs.allItems());
35+
override items = computed(() => this.inputs.items());
3636

3737
/** The tab index for the tree. Always -1 because the combobox handles focus. */
3838
override tabIndex: SignalLike<-1 | 0> = () => -1;
@@ -88,7 +88,7 @@ export class ComboboxTreePattern<V>
8888
getItem = (e: PointerEvent) => this._getItem(e);
8989

9090
/** Retrieves the currently selected items in the tree */
91-
getSelectedItems = () => this.inputs.allItems().filter(item => item.selected());
91+
getSelectedItems = () => this.inputs.items().filter(item => item.selected());
9292

9393
/** Sets the value of the combobox tree. */
9494
setValue = (value: V | undefined) => this.inputs.values.set(value ? [value] : []);

0 commit comments

Comments
 (0)