mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 15:13:24 +03:00
fix clickaway error in page
This commit is contained in:
parent
96ea531b4e
commit
928a90942a
@ -237,6 +237,7 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
|
|||||||
onKeyUpCapture={handle_keyup}
|
onKeyUpCapture={handle_keyup}
|
||||||
ref={commandMenuContentRef}
|
ref={commandMenuContentRef}
|
||||||
>
|
>
|
||||||
|
{show ? (
|
||||||
<MuiClickAwayListener onClickAway={handle_click_away}>
|
<MuiClickAwayListener onClickAway={handle_click_away}>
|
||||||
<div>
|
<div>
|
||||||
<CommandMenuContainer
|
<CommandMenuContainer
|
||||||
@ -256,6 +257,9 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</MuiClickAwayListener>
|
</MuiClickAwayListener>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user