Skip to content

Commit

Permalink
fix: card text selection
Browse files Browse the repository at this point in the history
  • Loading branch information
imchell committed Jun 8, 2022
1 parent aa7c285 commit 015fd12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/card/card.tsx
Expand Up @@ -55,7 +55,9 @@ const Card = React.forwardRef<HTMLDivElement, CardProps>(
isHovered={isHovered}
tabIndex={isPressable ? 0 : -1}
isFocusVisible={isFocusVisible}
{...mergeProps(pressProps, focusProps, hoverProps, otherProps)}
{...(isPressable
? mergeProps(pressProps, focusProps, hoverProps, otherProps)
: mergeProps(focusProps, hoverProps, otherProps))}
>
{isPressable && !disableAnimation && !disableRipple && (
<Drip {...dripBindings} />
Expand Down

0 comments on commit 015fd12

Please sign in to comment.