diff --git a/packages/core/src/view/handler/CellEditorHandler.ts b/packages/core/src/view/handler/CellEditorHandler.ts index 5d878fa7c..c4da8f8cb 100644 --- a/packages/core/src/view/handler/CellEditorHandler.ts +++ b/packages/core/src/view/handler/CellEditorHandler.ts @@ -798,8 +798,7 @@ class CellEditorHandler implements GraphPlugin { // Workaround for initial offsetHeight not ready for heading in markup if ( this.autoSize && - // @ts-ignore - (this.graph.model.isEdge(state.cell) || state.style.overflow !== 'fill') + (state.cell.isEdge() || state.style.overflow !== 'fill') ) { window.setTimeout(() => { this.resize();