Skip to content

Commit

Permalink
Revert "fix(textarea, taro): 修复 h5 下双向绑定失效的问题 (#2768)" (#2935)
Browse files Browse the repository at this point in the history
This reverts commit 4c7d346.
close #2930
  • Loading branch information
eiinu authored Feb 29, 2024
1 parent 7fb5ebe commit 577a381
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/packages/__VUE/textarea/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 577a381

Please sign in to comment.