MCPcopy Create free account
hub / github.com/Seanium/ChatMap / resetTextareaHeight

Function resetTextareaHeight

components/chat-interface.tsx:104–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103 // 重置文本框高度的函数
104 const resetTextareaHeight = () => {
105 const textarea = document.querySelector("textarea") as HTMLTextAreaElement
106 if (textarea) {
107 textarea.style.height = "38px"
108 }
109 }
110
111 // 提交查询并开始流式响应
112 const handleSubmit = async (e: React.FormEvent) => {

Callers 2

handleSubmitFunction · 0.85
handleSuggestedQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected