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> {
160
160
/** A unique identifier for the option. */
161
161
protected id = computed ( ( ) => this . _generatedId ) ;
162
162
163
- /** The value of the option. */
164
- protected value = input . required < V > ( ) ;
165
-
166
163
// TODO(wagnermaciel): See if we want to change how we handle this since textContent is not
167
164
// reactive. See https://github.com/angular/components/pull/30495#discussion_r1961260216.
168
165
/** The text used by the typeahead search. */
@@ -174,6 +171,9 @@ export class CdkOption<V> {
174
171
/** A reference to the option element to be focused on navigation. */
175
172
protected element = computed ( ( ) => this . _elementRef . nativeElement ) ;
176
173
174
+ /** The value of the option. */
175
+ value = input . required < V > ( ) ;
176
+
177
177
/** Whether an item is disabled. */
178
178
disabled = input ( false , { transform : booleanAttribute } ) ;
179
179
You can’t perform that action at this time.
0 commit comments