mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 02:52:28 +03:00
fix clickaway error in page
This commit is contained in:
parent
96ea531b4e
commit
928a90942a
@ -237,25 +237,29 @@ export const CommandMenu = ({ editor, hooks, style }: CommandMenuProps) => {
|
|||||||
onKeyUpCapture={handle_keyup}
|
onKeyUpCapture={handle_keyup}
|
||||||
ref={commandMenuContentRef}
|
ref={commandMenuContentRef}
|
||||||
>
|
>
|
||||||
<MuiClickAwayListener onClickAway={handle_click_away}>
|
{show ? (
|
||||||
<div>
|
<MuiClickAwayListener onClickAway={handle_click_away}>
|
||||||
<CommandMenuContainer
|
<div>
|
||||||
editor={editor}
|
<CommandMenuContainer
|
||||||
hooks={hooks}
|
editor={editor}
|
||||||
style={{
|
hooks={hooks}
|
||||||
...commandMenuPosition,
|
style={{
|
||||||
...style,
|
...commandMenuPosition,
|
||||||
}}
|
...style,
|
||||||
isShow={show}
|
}}
|
||||||
blockId={blockId}
|
isShow={show}
|
||||||
onSelected={handle_selected}
|
blockId={blockId}
|
||||||
onclose={handle_close}
|
onSelected={handle_selected}
|
||||||
searchBlocks={search_blocks}
|
onclose={handle_close}
|
||||||
types={types}
|
searchBlocks={search_blocks}
|
||||||
categories={categories}
|
types={types}
|
||||||
/>
|
categories={categories}
|
||||||
</div>
|
/>
|
||||||
</MuiClickAwayListener>
|
</div>
|
||||||
|
</MuiClickAwayListener>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user