-
-
Notifications
You must be signed in to change notification settings - Fork 625
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Create a table in the editor
- Enable table handles
- Interact with the table (e.g., selecting cells, adding/removing rows/columns)
- 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.
sylvinus, gitshot and YJ-webdev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working