File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/cdk-experimental/listbox Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments