Spaces:
Sleeping
Sleeping
calycekr
commited on
Fix chat input resizing issue when sending message with Enter key (#1840)
Browse filesEnsures textarea resizes properly before message submission with Enter key
src/lib/components/chat/ChatInput.svelte
CHANGED
|
@@ -108,6 +108,7 @@
|
|
| 108 |
value.trim() !== ""
|
| 109 |
) {
|
| 110 |
event.preventDefault();
|
|
|
|
| 111 |
dispatch("submit");
|
| 112 |
}
|
| 113 |
}
|
|
|
|
| 108 |
value.trim() !== ""
|
| 109 |
) {
|
| 110 |
event.preventDefault();
|
| 111 |
+
adjustTextareaHeight();
|
| 112 |
dispatch("submit");
|
| 113 |
}
|
| 114 |
}
|