aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-05-03 10:05:18 -0500
committerJP Dillingham <jp@dillingham.me>2026-05-03 10:05:18 -0500
commite70664167d1766b63a12fa1833b452a217e8b6cc (patch)
treecfa7d09be3bc373ede02b142c837c22cb5a7b5e7 /src
parent8a22018aefbb89d1b74788a0d6bda97b0d8da6b0 (diff)
downloadslskd-e70664167d1766b63a12fa1833b452a217e8b6cc.tar.gz
focus input when conversation is loaded
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Chat/Chat.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/web/src/components/Chat/Chat.jsx b/src/web/src/components/Chat/Chat.jsx
index 9e3605b8..0a080466 100644
--- a/src/web/src/components/Chat/Chat.jsx
+++ b/src/web/src/components/Chat/Chat.jsx
@@ -170,6 +170,12 @@ class Chat extends Component {
} catch {
// no-op
}
+
+ try {
+ this.messageRef.current.focus();
+ } catch {
+ // no-op
+ }
},
);
},