From b28a26dab0a1f51dfc3daf64df3f5c9022c56f77 Mon Sep 17 00:00:00 2001 From: Jan Hassel Date: Thu, 22 Aug 2024 14:11:59 +0200 Subject: [PATCH] fix(tag): add type="button" to interactive tag (#17241) --- packages/react/src/components/Tag/Tag.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react/src/components/Tag/Tag.tsx b/packages/react/src/components/Tag/Tag.tsx index 206f73708a4d..3fc5e7176920 100644 --- a/packages/react/src/components/Tag/Tag.tsx +++ b/packages/react/src/components/Tag/Tag.tsx @@ -224,6 +224,7 @@ const Tag = React.forwardRef(function Tag( disabled={disabled} className={tagClasses} id={tagId} + type={ComponentTag === 'button' ? 'button' : undefined} {...other}> {CustomIconElement && size !== 'sm' ? (