Skip to content

Commit dbfe98c

Browse files
authored
After typing message and hit return key, message now isn't added to the url
Signed-off-by: Howie Leung <[email protected]>
1 parent 989411f commit dbfe98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</div>
5454

5555
<div id="chat-area" class="text-light px-4 py-2 rounded-top text-dark d-flex flex-column justify-content-center background-user">
56-
<form id="chat-form">
56+
<form id="chat-form" onsubmit="event.preventDefault();">
5757
<div class="input-group">
5858
<i class="bi bi-body-text input-group-text" aria-hidden="true"></i>
5959
<input id="message" name="message" class="form-control form-control-sm" type="text" placeholder="Your Message" aria-label="Ask ChatGPT"></input>
@@ -106,4 +106,4 @@ <h5 class="mb-0">Document Viewer</h5>
106106
<script src="https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js"></script>
107107
<script type="module" src="/static/main.js"></script>
108108
</body>
109-
</html>
109+
</html>

0 commit comments

Comments
 (0)