We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa12d8 commit 0a9d6a5Copy full SHA for 0a9d6a5
src/aria/listbox/listbox.ts
@@ -257,7 +257,7 @@ export class Option<V> {
257
protected searchTerm = computed(() => this.label() ?? this.element.textContent);
258
259
/** The parent Listbox UIPattern. */
260
- protected listbox = computed(() => this._listbox._pattern);
+ private readonly _listboxPattern = computed(() => this._listbox._pattern);
261
262
/** The value of the option. */
263
value = input.required<V>();
@@ -276,7 +276,7 @@ export class Option<V> {
276
...this,
277
id: this.id,
278
value: this.value,
279
- listbox: this.listbox,
+ listbox: this._listboxPattern,
280
element: () => this.element,
281
searchTerm: () => this.searchTerm() ?? '',
282
});
0 commit comments