feat(Field): fix render error when value is null or undefined (#6419)
This commit is contained in:
+1
-1
@@ -491,7 +491,7 @@ export default createComponent({
|
||||
|
||||
genWordLimit() {
|
||||
if (this.showWordLimit && this.maxlength) {
|
||||
const count = this.value.length;
|
||||
const count = (this.value || '').length;
|
||||
const full = count >= this.maxlength;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user