fix(dashboard,medusa,types): allow searching for promotion rule options (#12028)

* fix: allow searching for promotion rule options

* fix: allow searching for promotion rule options

* add changeset

* cleanup
This commit is contained in:
Kasper Fabricius Kristensen
2025-03-28 14:45:05 +01:00
committed by GitHub
parent 6d8390a529
commit 3dba58785f
6 changed files with 55 additions and 65 deletions

View File

@@ -197,7 +197,7 @@ const ComboboxImpl = <T extends Value = string>(
const showTag = hasValue && isArrayValue
const showSelected = showTag && !searchValue && !open
const hideInput = !isArrayValue && !open
const hideInput = !isArrayValue && hasValue && !open
const selectedLabel = options.find((o) => o.value === selectedValues)?.label
const hidePlaceholder = showSelected || open