Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Include custom filter to tags

Kiran K6a4444c2ebcc
diff --git a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx
index 03275ab3ec..25de5e388c 100644
--- a/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/tags-section.tsx
@@ -168,7 +168,14 @@ export default function TagsSection({
return (
<div className="border-b border-gray-200 pb-2">
- <Command ref={commandRef} className="relative" loop>
+ <Command
+ ref={commandRef}
+ className="relative"
+ loop
+ filter={(value, search) =>
+ value.toLowerCase().includes(search.toLowerCase()) ? 1 : 0
+ }
+ >
<div className="group rounded-md border border-gray-300 bg-white p-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500">
<div className="absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400">
{creatingTag ? (