From 256cff82e2f36c5c35f754f60a443a271f7ab022 Mon Sep 17 00:00:00 2001 From: Andres-CT98 <107568016+Andres-CT98@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:45:35 -0600 Subject: [PATCH] expand isDisposed check (#2488) --- .../lib/tableEdit/editors/features/TableResizer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/roosterjs-content-model-plugins/lib/tableEdit/editors/features/TableResizer.ts b/packages/roosterjs-content-model-plugins/lib/tableEdit/editors/features/TableResizer.ts index 995c121c95a..81cfcc0eb0d 100644 --- a/packages/roosterjs-content-model-plugins/lib/tableEdit/editors/features/TableResizer.ts +++ b/packages/roosterjs-content-model-plugins/lib/tableEdit/editors/features/TableResizer.ts @@ -198,8 +198,10 @@ function onDragEnd( event: MouseEvent, initValue: DragAndDropInitValue | undefined ) { + if (context.editor.isDisposed()) { + return false; + } if ( - !context.editor.isDisposed() && isTableBottomVisible( context.editor, normalizeRect(context.table.getBoundingClientRect()),