Skip to content

Commit 4b1b237

Browse files
authored
fix: 🐛 修复某些场景下wd-textarea属性maxlength无效的问题 (#558)
1 parent 59fb1ea commit 4b1b237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uni_modules/wot-design-uni/components/wd-textarea/wd-textarea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const isRequired = computed(() => {
169169
170170
// 当前文本域文字长度
171171
const currentLength = computed(() => {
172-
return String(props.modelValue || '').length
172+
return String(formatValue(props.modelValue) || '').length
173173
})
174174
175175
const rootClass = computed(() => {

0 commit comments

Comments
 (0)