Skip to content

Commit 647616e

Browse files
authored
fix(cdk-experimental/listbox): make CdkOption public (#31588)
1 parent 88d4ffd commit 647616e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cdk-experimental/listbox/listbox.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ export class CdkOption<V> {
160160
/** A unique identifier for the option. */
161161
protected id = computed(() => this._generatedId);
162162

163-
/** The value of the option. */
164-
protected value = input.required<V>();
165-
166163
// TODO(wagnermaciel): See if we want to change how we handle this since textContent is not
167164
// reactive. See https://github.com/angular/components/pull/30495#discussion_r1961260216.
168165
/** The text used by the typeahead search. */
@@ -174,6 +171,9 @@ export class CdkOption<V> {
174171
/** A reference to the option element to be focused on navigation. */
175172
protected element = computed(() => this._elementRef.nativeElement);
176173

174+
/** The value of the option. */
175+
value = input.required<V>();
176+
177177
/** Whether an item is disabled. */
178178
disabled = input(false, {transform: booleanAttribute});
179179

0 commit comments

Comments
 (0)