fix: send button auto height

This commit is contained in:
2024-01-16 17:55:46 +08:00
parent 0eabcc0d0a
commit a4d3091e06
3 changed files with 14 additions and 10 deletions

View File

@@ -81,10 +81,10 @@ const LongInput = (props: {
onChange={(event: any) => {
props.chatStore[props.field] = event.target.value;
props.setChatStore({ ...props.chatStore });
autoHeight(event);
autoHeight(event.target);
}}
onKeyPress={(event: any) => {
autoHeight(event);
autoHeight(event.target);
}}
></textarea>
</Help>