diff --git a/client/src/features/editor/components/block/Block.tsx b/client/src/features/editor/components/block/Block.tsx index 4f80085d..dafe1c56 100644 --- a/client/src/features/editor/components/block/Block.tsx +++ b/client/src/features/editor/components/block/Block.tsx @@ -12,7 +12,7 @@ interface BlockProps { id: string; block: CRDTBlock; isActive: boolean; - onInput: (e: React.FormEvent, blockId: BlockId) => void; + onInput: (e: React.FormEvent, block: CRDTBlock) => void; onKeyDown: (e: React.KeyboardEvent) => void; onClick: (blockId: BlockId, e: React.MouseEvent) => void; } @@ -31,7 +31,7 @@ export const Block: React.FC = memo( }); const handleInput = (e: React.FormEvent) => { - onInput(e, block.id); + onInput(e, block); }; const setFocusAndCursor = () => {