fix: add control placeholder boundary error #686

This commit is contained in:
junestars
2024-07-10 18:45:29 +08:00
committed by GitHub
parent 0ac8ae7c4b
commit fac5c5c045
@@ -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
}