fix(components): [input] update input value length calculate (#11816)

* fix(components): [input] update input value length calculate

* fix: update test
This commit is contained in:
btea
2023-03-10 14:52:40 +08:00
committed by GitHub
parent 02955a924c
commit b38607f53b
2 changed files with 6 additions and 6 deletions

View File

@ -293,7 +293,7 @@ const isWordLimitVisible = computed(
!props.readonly &&
!props.showPassword
)
const textLength = computed(() => Array.from(nativeInputValue.value).length)
const textLength = computed(() => nativeInputValue.value.length)
const inputExceed = computed(
() =>
// show exceed style if length of initial value greater then maxlength