Skip to content

Commit 62efc90

Browse files
author
agile.zhou
committed
update role dropdown
1 parent 9deac73 commit 62efc90

File tree

1 file changed

+7
-0
lines changed
  • src/AgileConfig.Server.UI/react-ui-antd/src/pages/Role

1 file changed

+7
-0
lines changed

src/AgileConfig.Server.UI/react-ui-antd/src/pages/Role/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@ const getPermissionTagColor = (permission: string) => {
3131

3232
const renderPermissionTag = (props: CustomTagProps) => {
3333
const { label, value, closable, onClose } = props;
34+
const onPreventMouseDown = (event: React.MouseEvent<HTMLSpanElement>) => {
35+
event.preventDefault();
36+
event.stopPropagation();
37+
};
3438
return (
3539
<Tag
3640
key={String(value)} {...props}
3741
color={getPermissionTagColor(String(value))}
42+
onMouseDown={onPreventMouseDown}
43+
closable={closable}
44+
onClose={onClose}
3845
>
3946
{label}
4047
</Tag>

0 commit comments

Comments
 (0)