diff --git a/packages/ffe-cards-react/src/components/WithCardAction.tsx b/packages/ffe-cards-react/src/components/WithCardAction.tsx index c0b7c7048e..4b00c9a77d 100644 --- a/packages/ffe-cards-react/src/components/WithCardAction.tsx +++ b/packages/ffe-cards-react/src/components/WithCardAction.tsx @@ -81,7 +81,12 @@ function WithCardActionForwardRef( isUsingCardAction && `${baseClassName}--clickable`, )} onClick={(e: React.MouseEvent) => { - if (!cardActionInnerRef.current?.contains(e.target as Node)) { + const hasSelectedText = !!window.getSelection()?.toString() + .length; + if ( + !hasSelectedText && + !cardActionInnerRef.current?.contains(e.target as Node) + ) { cardActionInnerRef.current?.click(); } onClick?.(e);