Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ export class TableHandlesView<
this.state.block = this.editor.getBlock(this.state.block.id)!;
if (
!this.state.block ||
this.state.block.type !== "table" ||
// when collaborating, the table element might be replaced and out of date
// because yjs replaces the element when for example you change the color via the side menu
!this.tableElement?.isConnected
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/TableHandles/TableHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const TableHandle = <

const isDraggable = useMemo(() => {
const tableHandles = props.editor.tableHandles;
if (!tableHandles || !props.block) {
if (!tableHandles || !props.block || props.block.type !== "table") {
return false;
}

Expand Down
Loading