Skip to content

Commit

Permalink
fix: #135 avatar dragging should be disable
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Aug 7, 2023
1 parent 52647a9 commit c7334eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/packages/design/components/Avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ const _Avatar: React.FC<AvatarProps> = React.memo((_props) => {
}

const inner = (
<AntdAvatar {..._omit(props, ['size'])} src={src} style={style}>
<AntdAvatar
draggable={false}
{..._omit(props, ['size'])}
src={src}
style={style}
>
{name}
</AntdAvatar>
);
Expand Down

0 comments on commit c7334eb

Please sign in to comment.