Commit 70a832e
authored
fix: resolve unneeded error being thrown (#1503)
resolves: https://blocknote-js.sentry.io/issues/32147104
The drag over handler is listening to the root element, so you are not guaranteed to be hovering over a table: https://github.com/TypeCellOS/BlockNote/blob/aed9fb5044a0da73276c322b685dd838193247d0/packages/core/src/extensions/TableHandles/TableHandlesPlugin.ts#L186-L189 in which case, the previous state should still be maintained for the drop to actually switch the rows1 parent 003b44f commit 70a832e
File tree
1 file changed
+1
-3
lines changed- packages/core/src/extensions/TableHandles
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
398 | | - | |
399 | | - | |
| 397 | + | |
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
| |||
0 commit comments