The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix bugs
Steven Tey697d029015f2
diff --git a/apps/web/ui/modals/partner-link-modal.tsx b/apps/web/ui/modals/partner-link-modal.tsxindex 7352db6273..078596ad09 100644--- a/apps/web/ui/modals/partner-link-modal.tsx+++ b/apps/web/ui/modals/partner-link-modal.tsx@@ -214,14 +214,6 @@ function PartnerLinkModalContent({[selectedAdditionalLink],);- useEffect(() => {- if (!isExactMode || !selectedAdditionalLink) {- return;- }-- setValue("pathname", selectedAdditionalLink.path, { shouldDirty: true });- }, [selectedAdditionalLink]);-const {register,watch,@@ -238,6 +230,18 @@ function PartnerLinkModalContent({: undefined,});+ useEffect(() => {+ if (!selectedAdditionalLink) {+ return;+ }++ if (isExactMode) {+ setValue("pathname", selectedAdditionalLink.path, { shouldDirty: true });+ } else {+ setValue("pathname", "", { shouldDirty: true });+ }+ }, [selectedAdditionalLink, isExactMode]);+const [key, pathname] = watch(["key", "pathname"]);const saveDisabled = useMemo(diff --git a/packages/ui/src/scroll-container.tsx b/packages/ui/src/scroll-container.tsxindex fdcbe1d5a1..674597d9c2 100644--- a/packages/ui/src/scroll-container.tsx+++ b/packages/ui/src/scroll-container.tsx@@ -14,7 +14,8 @@ export function ScrollContainer({<div className="relative"><divclassName={cn(- "scrollbar-hide h-full w-screen overflow-y-scroll sm:w-auto",+ // clip-path is used to fix a weird bug in WebKit where scrolled-out-of-view content is still interactible+ "scrollbar-hide h-full w-screen overflow-y-scroll [clip-path:inset(0)] sm:w-auto",className,)}ref={ref}