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.

Merge branch 'links-dashboard' into fix-filter-select-conflicts

Tim Wilsond880b8f2ad07
diff --cc packages/ui/src/filter/filter-select.tsx
index 67ab3344a2,d32c6b598c..f1780a97a2
--- a/packages/ui/src/filter/filter-select.tsx
+++ b/packages/ui/src/filter/filter-select.tsx
@@@ -367,11 -369,14 +369,14 @@@ function FilterButton(
onPointerDown={(e) => {
e.preventDefault();
}}
- onPointerUp={() => {
- onSelect();
+ onPointerUp={(e) => {
+ e.preventDefault();
+ // Mobile touches have some sort of delay that can cause the next page's option's
+ // onClick / onSelect to be triggered so we delay this by 100ms to account for it
+ isMobile ? setTimeout(onSelect, 100) : onSelect();
}}
onSelect={onSelect}
- value={label}
+ value={label + option?.value}
>
<span className="shrink-0 text-gray-600">
{isReactNode(Icon) ? Icon : <Icon className="h-4 w-4" />}