Skip to content

Commit 5cd7520

Browse files
committed
refactor(aria/combobox): Extend public api with open/close methods
1 parent afbf7eb commit 5cd7520

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/aria/combobox/combobox.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ export class Combobox<V> {
117117
}
118118
});
119119
}
120+
121+
/** Opens the combobox to the selected item. */
122+
open() {
123+
this._pattern.open({selected: true});
124+
}
125+
126+
/** Closes the combobox. */
127+
close() {
128+
this._pattern.close();
129+
}
120130
}
121131

122132
@Directive({

0 commit comments

Comments
 (0)