Skip to content

Commit 0c601fa

Browse files
committed
refactor(aria/combobox): Add accessors for pattern properties
1 parent 610442f commit 0c601fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aria/combobox/combobox.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export class Combobox<V> {
8686
/** Whether the combobox is expanded. */
8787
readonly expanded = computed(() => this._pattern.expanded());
8888

89+
/** The currently highlighted item in the combobox. */
90+
readonly highlightedItem = computed(() => this._pattern.highlightedItem());
91+
8992
/** Input element connected to the combobox, if any. */
9093
readonly inputElement = computed(() => this._pattern.inputs.inputEl());
9194

0 commit comments

Comments
 (0)