fix: add control placeholder boundary error #686

main
junestars 2 years ago committed by GitHub
parent 0ac8ae7c4b
commit fac5c5c045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -133,7 +133,7 @@ export class TextControl implements IControlInstance {
.spliceElementList(elementList, startIndex + 1, endIndex - startIndex) .spliceElementList(elementList, startIndex + 1, endIndex - startIndex)
const value = this.getValue(context) const value = this.getValue(context)
if (!value.length) { if (!value.length) {
this.control.addPlaceholder(startIndex) this.control.addPlaceholder(startIndex, context)
} }
return startIndex return startIndex
} }

Loading…
Cancel
Save