Skip to content

Commit

Permalink
cleanup✨🧼✨
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijbet committed Mar 22, 2024
1 parent 93f8817 commit 3bd40df
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/calcite-components/src/components/combobox/combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,18 +681,13 @@ export class Combobox
}
break;
case " ":
if (!this.textInput.value) {
if (!this.textInput.value && !event.defaultPrevented) {
if (!this.open) {
if (event.composedPath().find((el: HTMLElement) => el.tagName === "CALCITE-CHIP")) {
event.preventDefault();
} else {
this.open = true;
this.shiftActiveItemIndex(1);
}
this.open = true;
this.shiftActiveItemIndex(1);
}
event.preventDefault();
}

break;
case "Home":
if (!this.open) {
Expand Down

0 comments on commit 3bd40df

Please sign in to comment.