diff --git a/src/packages/__VUE/textarea/index.taro.vue b/src/packages/__VUE/textarea/index.taro.vue index 742e7ecb99..811a8e7c53 100644 --- a/src/packages/__VUE/textarea/index.taro.vue +++ b/src/packages/__VUE/textarea/index.taro.vue @@ -127,8 +127,9 @@ export default create({ _onInput(event); } }; - const _onInput = (event: any) => { - let { value } = event.detail; + const _onInput = (event: Event) => { + const input = event.target as HTMLInputElement; + let value = input.value; if (props.maxLength && value.length > Number(props.maxLength)) { value = value.slice(0, Number(props.maxLength)); }