From 8b2a3675d3a5d4ec7e153f373eecf2acd2d3c128 Mon Sep 17 00:00:00 2001 From: Pedro Borges Date: Fri, 11 Oct 2024 10:57:28 -0300 Subject: [PATCH] Call onClick in regular events list --- packages/react/src/Link.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/src/Link.ts b/packages/react/src/Link.ts index c8c0b81f6..e8962a239 100755 --- a/packages/react/src/Link.ts +++ b/packages/react/src/Link.ts @@ -166,6 +166,8 @@ const Link = forwardRef( const regularEvents = { onClick: (event) => { + onClick(event) + if (shouldIntercept(event)) { event.preventDefault()