Skip to content

Commit 491b08e

Browse files
authored
fix(dashboard): combobox multiitem clear (medusajs#12939)
* fix(dashboard): clearing multiitem combobox * chore: changesets
1 parent d5ade61 commit 491b08e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tricky-fishes-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/dashboard": patch
3+
---
4+
5+
fix(dashboard): clearing multiitem combobox

packages/admin/dashboard/src/components/inputs/combobox/combobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const ComboboxImpl = <T extends Value = string>(
249249
type="button"
250250
onClick={(e) => {
251251
e.preventDefault()
252-
handleValueChange(undefined)
252+
handleValueChange(isArrayValue ? ([] as unknown as T) : undefined)
253253
}}
254254
className="bg-ui-bg-base hover:bg-ui-bg-base-hover txt-compact-small-plus text-ui-fg-subtle focus-within:border-ui-fg-interactive transition-fg absolute left-0.5 top-0.5 z-[1] flex h-[28px] items-center rounded-[4px] border py-[3px] pl-1.5 pr-1 outline-none"
255255
>

0 commit comments

Comments
 (0)