Skip to content

Commit 422f050

Browse files
crisbetoandrewseguin
authored andcommitted
refactor(cdk-experimental/listbox): update visibility on value field
The `value` field is an input, but is `protected` which isn't supported.
1 parent ae9e8d2 commit 422f050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk-experimental/listbox/listbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class CdkOption<V> {
161161
protected id = computed(() => this._generatedId);
162162

163163
/** The value of the option. */
164-
protected value = input.required<V>();
164+
readonly value = input.required<V>();
165165

166166
// TODO(wagnermaciel): See if we want to change how we handle this since textContent is not
167167
// reactive. See https://github.com/angular/components/pull/30495#discussion_r1961260216.

0 commit comments

Comments
 (0)