Explorar o código

fix node events

Aykut Saraç %!s(int64=3) %!d(string=hai) anos
pai
achega
d63aeb1a8b
Modificáronse 1 ficheiros con 3 adicións e 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;