From fac5c5c045a30cb5e0c46ef027c83f21e07bcaa8 Mon Sep 17 00:00:00 2001 From: junestars <107550628+junestars@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:45:29 +0800 Subject: [PATCH] fix: add control placeholder boundary error #686 --- src/editor/core/draw/control/text/TextControl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/draw/control/text/TextControl.ts b/src/editor/core/draw/control/text/TextControl.ts index 46941b4..ef08b3e 100644 --- a/src/editor/core/draw/control/text/TextControl.ts +++ b/src/editor/core/draw/control/text/TextControl.ts @@ -133,7 +133,7 @@ export class TextControl implements IControlInstance { .spliceElementList(elementList, startIndex + 1, endIndex - startIndex) const value = this.getValue(context) if (!value.length) { - this.control.addPlaceholder(startIndex) + this.control.addPlaceholder(startIndex, context) } return startIndex }