fix: add onTouchEnd for mobile apps (#18040)

This commit is contained in:
Morgan
2024-12-09 10:21:52 +02:00
committed by GitHub
parent 3b1123a29a
commit e559e7a46f
@@ -77,6 +77,10 @@ export const OAuthConnect: FC<
tooltipOffset={10}
tooltipClassName="p-0 text-inherit bg-inherit"
className={cn("", !isDisabled && "cursor-pointer", className)}
onTouchEnd={() => {
connect();
onSuccess?.();
}}
onClick={() => {
connect();
onSuccess?.();
@@ -100,6 +104,10 @@ export const OAuthConnect: FC<
!isDisabled && "cursor-pointer",
className
)}
onTouchEnd={() => {
connect();
onSuccess?.();
}}
onClick={() => connect()}>
{displayedLabel}
</Button>