From 164d10a4375499577e3a758271ed52419f138b16 Mon Sep 17 00:00:00 2001 From: TravisAdsitt <70sRocker@gmail.com> Date: Mon, 18 Dec 2023 08:05:06 -0700 Subject: [PATCH] fix: correcly call 'isEdge' in CellEditorHandler (#286) `isEdge` is not a model function but rather a function of the cell. --- packages/core/src/view/handler/CellEditorHandler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();