BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Table mouse hover crash

Open AntoLC opened this issue 1 month ago • 0 comments

Describe the bug

We have cases where the app crash, it seems to be when we move the mouse hover a table. The bug occurs as well on Blocknote.js, it is a bit harder to reproduce though.

To Reproduce

Example of table that crashed:

<div class="bn-block-outer" data-node-type="blockOuter" data-id="ae1b8a8d-fc95-4522-8088-6c8e3d254b07">
<div class="bn-block" data-node-type="blockContainer" data-id="ae1b8a8d-fc95-4522-8088-6c8e3d254b07"><div class="bn-block-content" data-content-type="table"><div class="tableWrapper"><div class="tableWrapper-inner"><table style="--default-cell-min-width: 120px; width: 466px;"><colgroup><col style="width: 203px;"><col style="width: 263px;"></colgroup><tbody><tr><td colspan="1" rowspan="1" colwidth="203"><p>Niveau maximum retenu</p></td><td colspan="1" rowspan="1" colwidth="263"><p><strong>Justification</strong></p></td></tr><tr><td colspan="1" rowspan="1" colwidth="203"><p>Sélectionner</p></td><td colspan="1" rowspan="1" colwidth="263"><p><br class="ProseMirror-trailingBreak"></p></td></tr></tbody></table></div><div class="table-widgets-container" style="position: relative;"></div></div></div></div>
</div>

https://github.com/user-attachments/assets/6622674b-6195-4fa2-9db2-2cbbdd07a95d

The console log error from Blocknote.js:

Image

Another console log error show that: Image

Possible culprit: https://github.com/TypeCellOS/BlockNote/blob/5160d7360e7d2534ea1f2966cd7a302bb2e37216/packages/react/src/components/TableHandles/TableHandlesController.tsx#L89-L94

Misc

  • Node version:
  • Package manager:
  • Browser:
  • [x] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

AntoLC avatar Jan 14 '26 17:01 AntoLC