From 6eb8487d89ab14f8f11a40b78d7db72e3266840d Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Tue, 13 May 2025 18:08:21 -0400
Subject: Send multi-line messages as multiple lines.

For whatever reason, `innerText` captures interior line breaks, while `textContent` does not. Wild. DOM APIs.
---
 ui/lib/components/MessageInput.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ui/lib/components/MessageInput.svelte')

diff --git a/ui/lib/components/MessageInput.svelte b/ui/lib/components/MessageInput.svelte
index 1f4ba99..71b7b8f 100644
--- a/ui/lib/components/MessageInput.svelte
+++ b/ui/lib/components/MessageInput.svelte
@@ -31,7 +31,7 @@
   <div
     contenteditable="plaintext-only"
     class="textarea"
-    bind:textContent={value}
+    bind:innerText={value}
     {onkeydown}
     {disabled}
     placeholder="Say something..."
-- 
cgit v1.2.3

