Skip to content

Commit

Permalink
fix(card): close onClick and onchange Propagation
Browse files Browse the repository at this point in the history
close #7247
  • Loading branch information
chenshuai2144 committed Jun 24, 2023
1 parent bf7ad43 commit c86532f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/card/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,19 @@ const Card = React.forwardRef((props: CardProps, ref: any) => {
/>
</div>
{extra && (
<div className={`${prefixCls}-extra ${hashId}`.trim()}>{extra}</div>
<div
className={`${prefixCls}-extra ${hashId}`.trim()}
onChange={(e) => {
e.stopPropagation();
e.preventDefault();
}}
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
}}
>
{extra}
</div>
)}
</div>
)}
Expand Down

0 comments on commit c86532f

Please sign in to comment.