diff --git a/components/Blocks/CodeBlock.tsx b/components/Blocks/CodeBlock.tsx index 0488d4f3..bfadda5d 100644 --- a/components/Blocks/CodeBlock.tsx +++ b/components/Blocks/CodeBlock.tsx @@ -123,6 +123,10 @@ export function CodeBlock(props: BlockProps) { data-entityid={props.entityID} id={elementId.block(props.entityID).input} block={props} + spellCheck={false} + autoCapitalize="none" + autoComplete="off" + autoCorrect="off" className="codeBlockEditor whitespace-nowrap! overflow-auto! font-mono p-2" value={content?.data.value} onChange={async (e) => { diff --git a/components/Blocks/MathBlock.tsx b/components/Blocks/MathBlock.tsx index fbe58de8..4f8d1542 100644 --- a/components/Blocks/MathBlock.tsx +++ b/components/Blocks/MathBlock.tsx @@ -35,6 +35,10 @@ export function MathBlock(props: BlockProps) { Date: Sun, 26 Oct 2025 16:35:03 +1100 Subject: [PATCH 2/2] Remove autoComplete="off" from code and math blocks --- components/Blocks/CodeBlock.tsx | 1 - components/Blocks/MathBlock.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/components/Blocks/CodeBlock.tsx b/components/Blocks/CodeBlock.tsx index bfadda5d..984f7e0c 100644 --- a/components/Blocks/CodeBlock.tsx +++ b/components/Blocks/CodeBlock.tsx @@ -125,7 +125,6 @@ export function CodeBlock(props: BlockProps) { block={props} spellCheck={false} autoCapitalize="none" - autoComplete="off" autoCorrect="off" className="codeBlockEditor whitespace-nowrap! overflow-auto! font-mono p-2" value={content?.data.value} diff --git a/components/Blocks/MathBlock.tsx b/components/Blocks/MathBlock.tsx index 4f8d1542..ecd60e6d 100644 --- a/components/Blocks/MathBlock.tsx +++ b/components/Blocks/MathBlock.tsx @@ -37,7 +37,6 @@ export function MathBlock(props: BlockProps) { block={props} spellCheck={false} autoCapitalize="none" - autoComplete="off" autoCorrect="off" className="bg-border-light rounded-md p-2 w-full min-h-[48px] whitespace-nowrap overflow-auto! border-border-light outline-border-light selected-outline" placeholder="write some Tex here..."