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 a438b03 commit 236c73bCopy full SHA for 236c73b
packages/uui-combobox/lib/uui-combobox.element.ts
@@ -226,6 +226,10 @@ export class UUIComboboxElement extends FormControlMixin(LitElement) {
226
this.dispatchEvent(new UUIComboboxEvent(UUIComboboxEvent.CHANGE));
227
};
228
229
+ #onToggle = () => {
230
+ this.open = !this.open;
231
+ };
232
+
233
#onOpen = () => {
234
if (this.open) return;
235
this.open = true;
@@ -283,7 +287,7 @@ export class UUIComboboxElement extends FormControlMixin(LitElement) {
283
287
autocomplete="off"
284
288
.disabled=${this.disabled}
285
289
popovertarget="combobox-popover"
286
- @click=${this.#onOpen}
290
+ @click=${this.#onToggle}
291
@input=${this.#onInput}
292
@keydown=${this.#onKeyDown}>
293
<slot name="input-prepend" slot="prepend"></slot>
0 commit comments