Skip to content

Commit 1181b5b

Browse files
committed
Removed selectedIds from CdkTablist
1 parent 7202d5c commit 1181b5b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/cdk-experimental/tabs/tabs.ts

-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ export class CdkTablist {
116116
/** Whether the tablist is disabled. */
117117
disabled = input(false, {transform: booleanAttribute});
118118

119-
/** The ids of the current selected tab. */
120-
selectedIds = model<string[]>([]);
121-
122119
/** The current index that has been navigated to. */
123120
activeIndex = model<number>(0);
124121

src/cdk-experimental/ui-patterns/tabs/tablist.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface SelectOptions {
2727

2828
/** The required inputs for the tablist. */
2929
export type TablistInputs = ListNavigationInputs<TabPattern> &
30-
Omit<ListSelectionInputs<TabPattern>, 'multiselectable'> &
30+
Omit<ListSelectionInputs<TabPattern>, 'multiselectable' | 'selectedIds'> &
3131
ListFocusInputs<TabPattern> & {
3232
disabled: Signal<boolean>;
3333
};
@@ -113,6 +113,7 @@ export class TablistPattern {
113113
...inputs,
114114
navigation: this.navigation,
115115
multiselectable: signal(false),
116+
selectedIds: signal<string[]>([]),
116117
});
117118
this.focusManager = new ListFocus({...inputs, navigation: this.navigation});
118119
}

0 commit comments

Comments
 (0)