Skip to content

Commit

Permalink
fix: add control placeholder boundary error #686
Browse files Browse the repository at this point in the history
  • Loading branch information
junestars authored Jul 10, 2024
1 parent 0ac8ae7 commit fac5c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/core/draw/control/text/TextControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fac5c5c

Please sign in to comment.