Skip to content

Commit 0a9d6a5

Browse files
committed
refactor(aria/listbox): underscore pattern props only for internal usage
1 parent 7aa12d8 commit 0a9d6a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aria/listbox/listbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class Option<V> {
257257
protected searchTerm = computed(() => this.label() ?? this.element.textContent);
258258

259259
/** The parent Listbox UIPattern. */
260-
protected listbox = computed(() => this._listbox._pattern);
260+
private readonly _listboxPattern = computed(() => this._listbox._pattern);
261261

262262
/** The value of the option. */
263263
value = input.required<V>();
@@ -276,7 +276,7 @@ export class Option<V> {
276276
...this,
277277
id: this.id,
278278
value: this.value,
279-
listbox: this.listbox,
279+
listbox: this._listboxPattern,
280280
element: () => this.element,
281281
searchTerm: () => this.searchTerm() ?? '',
282282
});

0 commit comments

Comments
 (0)