fix: kanban tag click not work (#494)

This commit is contained in:
lawvs 2022-07-25 15:38:33 +08:00
parent 4640a3ab1e
commit d4a77b5d7b

View File

@ -112,17 +112,15 @@ const KanbanTag = (group: KanbanGroup) => {
const [color, bg] = getKanbanColor(group);
return (
<>
<MuiClickAwayListener onClickAway={() => setAnchorEl(null)}>
<Tag
interactive={!isDefaultGroup}
color={color}
background={bg}
onClick={handleClickTag}
>
{group.name}
</Tag>
<span>{group.name}</span>
<MuiClickAwayListener onClickAway={() => setAnchorEl(null)}>
<MuiPopper
open={open}
anchorEl={anchorEl}
@ -148,8 +146,8 @@ const KanbanTag = (group: KanbanGroup) => {
</IconButton>
</PopperContainer>
</MuiPopper>
</MuiClickAwayListener>
</>
</Tag>
</MuiClickAwayListener>
);
};