浏览代码

fix node events

Aykut Saraç 3 年之前
父节点
当前提交
d63aeb1a8b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/containers/LiveEditor/CustomNode/styles.tsx

+ 3 - 1
src/containers/LiveEditor/CustomNode/styles.tsx

@@ -23,7 +23,9 @@ export const StyledText = styled.pre<{
   color: ${({ theme }) => theme.SILVER};
 `;
 
-export const StyledForeignObject = styled.foreignObject``;
+export const StyledForeignObject = styled.foreignObject`
+  pointer-events: none;
+`;
 
 export const StyledKey = styled.span<{
   objectKey?: boolean;