From 28585fedaa43ab9e7e8f453f3bfaf19d999d76f0 Mon Sep 17 00:00:00 2001 From: huangkun2 Date: Fri, 15 Sep 2023 15:03:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8A=82=E7=82=B9=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E6=A1=86=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3198)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/x6-plugin-selection/src/selection.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/x6-plugin-selection/src/selection.ts b/packages/x6-plugin-selection/src/selection.ts index 90dd609ee7c..e1372177616 100644 --- a/packages/x6-plugin-selection/src/selection.ts +++ b/packages/x6-plugin-selection/src/selection.ts @@ -846,10 +846,11 @@ export class SelectionImpl extends View { } confirmUpdate() { + const { $boxes } = this if (this.boxCount) { this.hide() - for (let i = 0, len = this.$boxes.length; i < len; i += 1) { - const box = this.$boxes[i] + for (let i = 0, len = $boxes.length; i < len; i += 1) { + const box = $boxes[i] const cellId = Dom.attr(box, 'data-cell-id') Dom.remove(box) const cell = this.collection.get(cellId)