diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-03 10:05:18 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-03 10:05:18 -0500 |
| commit | e70664167d1766b63a12fa1833b452a217e8b6cc (patch) | |
| tree | cfa7d09be3bc373ede02b142c837c22cb5a7b5e7 /src/web | |
| parent | 8a22018aefbb89d1b74788a0d6bda97b0d8da6b0 (diff) | |
| download | slskd-e70664167d1766b63a12fa1833b452a217e8b6cc.tar.gz | |
focus input when conversation is loaded
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/Chat/Chat.jsx | 6 |
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 + } }, ); }, |
