Skip to content

Commit 9f8ef21

Browse files
committed
fixup! feat(cdk-experimental/ui-patterns): listbox ui pattern
1 parent 8f07db6 commit 9f8ef21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cdk-experimental/ui-patterns/behaviors/list-navigation/list-navigation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ export class ListNavigation<T extends ListNavigationItem> {
5555

5656
/** Navigates to the next item in the list. */
5757
next() {
58-
this.advance(1);
58+
this._advance(1);
5959
}
6060

6161
/** Navigates to the previous item in the list. */
6262
prev() {
63-
this.advance(-1);
63+
this._advance(-1);
6464
}
6565

6666
/** Navigates to the first item in the list. */
@@ -89,7 +89,7 @@ export class ListNavigation<T extends ListNavigationItem> {
8989
}
9090

9191
/** Advances to the next or previous focusable item in the list based on the given delta. */
92-
private advance(delta: 1 | -1) {
92+
private _advance(delta: 1 | -1) {
9393
const items = this.inputs.items();
9494
const itemCount = items.length;
9595
const startIndex = this.inputs.activeIndex();

0 commit comments

Comments
 (0)