fix : cant search by using name
This commit is contained in:
@@ -80,7 +80,7 @@ function CatalogPicker({ items, value, onChange, placeholder, rarityBackground =
|
|||||||
<ComboboxContent>
|
<ComboboxContent>
|
||||||
<ComboboxEmpty>ไม่พบรายการ</ComboboxEmpty>
|
<ComboboxEmpty>ไม่พบรายการ</ComboboxEmpty>
|
||||||
<ComboboxList>
|
<ComboboxList>
|
||||||
{items.map((item) => <ComboboxItem key={item.key} value={item}><div className={cn("relative size-8 shrink-0 overflow-hidden rounded-md", rarityBackground && rarityGradientClass(item.rarity))}><Image src={item.imageUrl} alt="" fill className="object-contain" /></div>{item.name}</ComboboxItem>)}
|
{(item) => <ComboboxItem key={item.key} value={item}><div className={cn("relative size-8 shrink-0 overflow-hidden rounded-md", rarityBackground && rarityGradientClass(item.rarity))}><Image src={item.imageUrl} alt="" fill className="object-contain" /></div>{item.name}</ComboboxItem>}
|
||||||
</ComboboxList>
|
</ComboboxList>
|
||||||
</ComboboxContent>
|
</ComboboxContent>
|
||||||
</Combobox>
|
</Combobox>
|
||||||
|
|||||||
Reference in New Issue
Block a user