From 6707e082a5647f51f3260bd84ded77e02a5b702a Mon Sep 17 00:00:00 2001 From: "lixuefei.1313" Date: Wed, 26 Nov 2025 19:55:46 +0800 Subject: [PATCH 1/2] fix: fix issue of animation state --- packages/vrender-core/src/graphic/graphic.ts | 19 +++++++++++-------- .../src/plugins/builtin-plugin/edit-module.ts | 7 +++++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/vrender-core/src/graphic/graphic.ts b/packages/vrender-core/src/graphic/graphic.ts index fcb4bc904..7a6377aa9 100644 --- a/packages/vrender-core/src/graphic/graphic.ts +++ b/packages/vrender-core/src/graphic/graphic.ts @@ -259,29 +259,29 @@ export abstract class Graphic = Partial = Partial = Partial { // if ((animate as any).stateNames) { // const endProps = animate.getEndProps(); diff --git a/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts b/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts index 2ea4055d7..6e230027e 100644 --- a/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts +++ b/packages/vrender-core/src/plugins/builtin-plugin/edit-module.ts @@ -420,8 +420,11 @@ export class EditModule { this.textAreaDom.removeEventListener('input', this.handleInput); this.textAreaDom.removeEventListener('compositionstart', this.handleCompositionStart); this.textAreaDom.removeEventListener('compositionend', this.handleCompositionEnd); - this.textAreaDom.addEventListener('focusin', this.handleFocusOut); - this.textAreaDom.addEventListener('focusout', this.handleFocusOut); + this.textAreaDom.removeEventListener('focusin', this.handleFocusOut); + this.textAreaDom.removeEventListener('focusout', this.handleFocusOut); application.global.removeEventListener('keydown', this.handleKeyDown); + + this.textAreaDom.parentElement?.removeChild(this.textAreaDom); + this.textAreaDom = null; } } From 4ab3a02a0f83592bfda50ee5bd1b3971c676088c Mon Sep 17 00:00:00 2001 From: "lixuefei.1313" Date: Wed, 26 Nov 2025 19:55:57 +0800 Subject: [PATCH 2/2] docs: update changlog of rush --- ...fix-issue-of-animation-state_2025-11-26-11-55.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/changes/@visactor/vrender-core/fix-fix-issue-of-animation-state_2025-11-26-11-55.json diff --git a/common/changes/@visactor/vrender-core/fix-fix-issue-of-animation-state_2025-11-26-11-55.json b/common/changes/@visactor/vrender-core/fix-fix-issue-of-animation-state_2025-11-26-11-55.json new file mode 100644 index 000000000..605482a19 --- /dev/null +++ b/common/changes/@visactor/vrender-core/fix-fix-issue-of-animation-state_2025-11-26-11-55.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: fix issue of animation state\n\n", + "type": "none", + "packageName": "@visactor/vrender-core" + } + ], + "packageName": "@visactor/vrender-core", + "email": "lixuef1313@163.com" +} \ No newline at end of file