fix(dashboard): combobox multiitem clear (#12939)

* fix(dashboard): clearing multiitem combobox

* chore: changesets
This commit is contained in:
Frane Polić
2025-07-14 20:32:20 +02:00
committed by GitHub
parent d5ade616d5
commit 491b08e044
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": patch
---
fix(dashboard): clearing multiitem combobox

View File

@@ -249,7 +249,7 @@ const ComboboxImpl = <T extends Value = string>(
type="button"
onClick={(e) => {
e.preventDefault()
handleValueChange(undefined)
handleValueChange(isArrayValue ? ([] as unknown as T) : undefined)
}}
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"
>