fix: disable ref page selection (#343)
This commit is contained in:
@@ -21,13 +21,17 @@ const Modal = ({ open, children }: { open: boolean; children?: ReactNode }) => {
|
|||||||
return createPortal(
|
return createPortal(
|
||||||
<MuiBackdrop
|
<MuiBackdrop
|
||||||
open={open}
|
open={open}
|
||||||
|
onMouseDown={(e: { stopPropagation: () => void }) => {
|
||||||
|
// Prevent trigger the bottom editor's selection
|
||||||
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
|
onClick={closeSubPage}
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
background: 'rgba(58, 76, 92, 0.4)',
|
background: 'rgba(58, 76, 92, 0.4)',
|
||||||
zIndex: theme.affine.zIndex.popover,
|
zIndex: theme.affine.zIndex.popover,
|
||||||
}}
|
}}
|
||||||
onClick={closeSubPage}
|
|
||||||
>
|
>
|
||||||
<Dialog
|
<Dialog
|
||||||
onClick={(e: { stopPropagation: () => void }) => {
|
onClick={(e: { stopPropagation: () => void }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user