Skip to content

Commit ea489cb

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 864a0b6 commit ea489cb

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
@@ -159,7 +159,7 @@ <h2 class="font-bold ml-4">Conversations</h2>
159159
id="msg-input"
160160
dir="auto"
161161
></textarea>
162-
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
162+
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0" id="msg-send">Send</button>
163163
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
164164
</div>
165165
</div>

0 commit comments

Comments
 (0)