From 2b47c97fb5f308ad599b8fdf3b98b73128f239e7 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Thu, 21 Jul 2022 21:01:51 +0800 Subject: [PATCH] fix:after delete hyperlink clear popup --- src/editor/core/command/CommandAdapt.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index deb0e09..07faa9e 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -1057,6 +1057,7 @@ export class CommandAdapt { const [leftIndex, rightIndex] = hyperRange // 删除元素 elementList.splice(leftIndex + 1, rightIndex - leftIndex) + this.draw.getHyperlinkParticle().clearHyperlinkPopup() // 重置画布 this.range.setRange(leftIndex, leftIndex) this.draw.render({ @@ -1078,6 +1079,7 @@ export class CommandAdapt { delete element.hyperlinkId delete element.underline } + this.draw.getHyperlinkParticle().clearHyperlinkPopup() // 重置画布 const { endIndex } = this.range.getRange() this.draw.render({