mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 04:41:57 +03:00
fix: kanban tag click not work (#494)
This commit is contained in:
parent
4640a3ab1e
commit
d4a77b5d7b
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user