bound callback

This commit is contained in:
Red Adaya 2024-05-01 10:51:23 +08:00
parent d177fab6e3
commit 67df71d1ca

View File

@ -207,6 +207,7 @@ class AIChat extends React.Component<{}, {}> {
}
// Adjust the height of the textarea to fit the text
@boundMethod
onTextAreaChange(e: any) {
// Calculate the bounding height of the text area
const textAreaMaxLines = 4;