From 804547eff802a8b9aafe1d39e55cd3f08d699f65 Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Wed, 23 Jul 2025 15:02:04 -0400 Subject: [PATCH] fix(cdk-experimental/listbox): make CdkOption public --- src/cdk-experimental/listbox/listbox.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cdk-experimental/listbox/listbox.ts b/src/cdk-experimental/listbox/listbox.ts index 243ca3e3f36f..d310f98a7f20 100644 --- a/src/cdk-experimental/listbox/listbox.ts +++ b/src/cdk-experimental/listbox/listbox.ts @@ -160,9 +160,6 @@ export class CdkOption { /** A unique identifier for the option. */ protected id = computed(() => this._generatedId); - /** The value of the option. */ - protected value = input.required(); - // TODO(wagnermaciel): See if we want to change how we handle this since textContent is not // reactive. See https://github.com/angular/components/pull/30495#discussion_r1961260216. /** The text used by the typeahead search. */ @@ -174,6 +171,9 @@ export class CdkOption { /** A reference to the option element to be focused on navigation. */ protected element = computed(() => this._elementRef.nativeElement); + /** The value of the option. */ + value = input.required(); + /** Whether an item is disabled. */ disabled = input(false, {transform: booleanAttribute});