Skip to content

Commit 02cab34

Browse files
Reset input after user message
1 parent 35bd4ff commit 02cab34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/components/chat.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
{% endif %}
1919
{% endfor %}
2020
</div>
21-
<form id="chatForm" class="inputForm clearfix">
21+
<form id="chatForm" class="inputForm clearfix"
22+
hx-on::after-request="this.reset()">
2223
<input
2324
type="text"
2425
class="input"

0 commit comments

Comments
 (0)