From f71acfc73ef57ff08a14def3467c39fcb4c188fa Mon Sep 17 00:00:00 2001 From: Ryan Hamamura <58859899+ryanhamamura@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:47:05 -1000 Subject: [PATCH] fix: use format string for datastar.PostSSE in chat component PostSSE requires a constant format string; pass "%s" with the URL as an argument instead of passing the URL directly. --- chat/components/chat.templ | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/chat/components/chat.templ b/chat/components/chat.templ index 2a2199e..da7e329 100644 --- a/chat/components/chat.templ +++ b/chat/components/chat.templ @@ -43,20 +43,20 @@ templ Chat(messages []chat.Message, cfg Config) { autocomplete="off" data-bind="chatMsg" data-on:keydown.stop="" - data-on:keydown.key_enter={ datastar.PostSSE(cfg.PostURL) } - /> - } else { - - } -