Skip to content

Commit 4981d4b

Browse files
committed
examples/server/webui/index.html: assign id="msg-send" to the "Send" button
Giving the button an id is needed to reliably call focus() after mounting. Signed-off-by: Tim Janik <[email protected]>
1 parent 1204f97 commit 4981d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/webui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h2 class="font-bold ml-4">Conversations</h2>
157157
:disabled="isGenerating"
158158
id="msg-input"
159159
></textarea>
160-
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
160+
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0" id="msg-send">Send</button>
161161
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
162162
</div>
163163
</div>

0 commit comments

Comments
 (0)