1
0
Fork 0
forked from Mirrors/gomuks

web/roomview: autofocus input box

This commit is contained in:
Tulir Asokan 2024-10-10 21:50:14 +03:00
parent 543c3bcc25
commit d428a26b0a

View file

@ -43,6 +43,7 @@ const RoomView = ({ room }: RoomViewProps) => {
<TimelineView room={room} />
<form className="message-composer" onSubmit={sendMessage}>
<input
autoFocus
type="text"
value={text}
onChange={evt => setText(evt.target.value)}