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