Explorar el Código

fix node events

Aykut Saraç hace 3 años
padre
commit
d63aeb1a8b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;