mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Remove TS ignore
This commit is contained in:
@@ -192,15 +192,13 @@
|
|||||||
if (e.key === "Enter" && !e.shiftKey) {
|
if (e.key === "Enter" && !e.shiftKey) {
|
||||||
send();
|
send();
|
||||||
// Resize back to auto
|
// Resize back to auto
|
||||||
// @ts-ignore
|
input.style.height = "auto";
|
||||||
e.target.style.height = "auto";
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
on:input={(e) => {
|
on:input={(e) => {
|
||||||
// Resize the textarea to fit the content
|
// Resize the textarea to fit the content
|
||||||
// @ts-ignore
|
input.style.height = input.scrollHeight + "px";
|
||||||
e.target.style.height = e.target.scrollHeight + "px";
|
|
||||||
}}
|
}}
|
||||||
bind:this={input}
|
bind:this={input}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user