Skip to content

TypeError: Cannot read properties of undefined (reading 'colIndex') when using table handles in BlockNote #1411

Closed
@TtBJSH

Description

@TtBJSH

Description

When using BlockNote with table handles enabled, I frequently encounter the following error:
TypeError: Cannot read properties of undefined (reading 'colIndex') at HTMLDivElement.<anonymous>

This error occurs randomly when interacting with tables in the editor.

Environment

  • "@blocknote/react": "^0.22.0"
  • "react": "^18.0.0"
  • Chrome Version: 132.0.6834.160 (Official Build) (64-bit)

Code Example

// Editor component

<BlockNoteView
    editor={editor}
    theme="light"
    onChange={handleChange}
    emojiPicker={false}
    slashMenu={false}
    editable={!readOnly}
    formattingToolbar={false}
    tableHandles={true}
/>

Steps to Reproduce

  1. Create a table in the editor
  2. Enable table handles
  3. Interact with the table (e.g., selecting cells, adding/removing rows/columns)
  4. The error occurs randomly during these interactions

Expected Behavior
Table handles should work smoothly without throwing undefined property errors.

Additional Context

  • The error seems to be related to the table handles feature
  • It occurs intermittently and is hard to reproduce consistently
  • The editor still functions but the error appears in the console

Would appreciate any help in resolving this issue or guidance on proper configuration of table handles.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions