Skip to content

Commit

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

0 comments on commit 4c7d346

Please sign in to comment.