We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b3b34 commit 36c4749Copy full SHA for 36c4749
script/AIChatChat.js
@@ -37,7 +37,7 @@ class AIChatChat extends HTMLElement {
37
this.#input.addEventListener('keydown', (event) => {
38
if (event.key === 'Enter' && !event.shiftKey && !event.ctrlKey && !event.altKey && !event.metaKey) {
39
event.preventDefault();
40
- form.dispatchEvent(new Event('submit'));
+ this.onSubmit(event);
41
}
42
});
43
0 commit comments