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.

search animation only when there's a search value

Steven Tey56656c4d2042
diff --git a/components/app/links/link-filters.tsx b/components/app/links/link-filters.tsx
index 0341fa512a..e6404bf253 100644
--- a/components/app/links/link-filters.tsx
+++ b/components/app/links/link-filters.tsx
@@ -62,7 +62,7 @@ const SearchBox = ({ searchInputRef }: { searchInputRef }) => {
return (
<div className="relative">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
- {isValidating ? (
+ {isValidating && searchInputRef.current?.value.length > 0 ? (
<LoadingSpinner />
) : (
<Search className="h-4 w-4 text-gray-400" />