Ver Fonte

fix node events

Aykut Saraç há 3 anos atrás
pai
commit
d63aeb1a8b
1 ficheiros alterados com 3 adições e 1 exclusões
  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;