ui: fix issue with stalechat message
This commit is contained in:
parent
de1bcdad17
commit
ea8d513e6e
1 changed files with 5 additions and 2 deletions
|
@ -650,8 +650,10 @@
|
||||||
<textarea
|
<textarea
|
||||||
id="chat_input"
|
id="chat_input"
|
||||||
className=${generating.value ? "loading" : null}
|
className=${generating.value ? "loading" : null}
|
||||||
oninput=${(e) => message.value = e.target.value}
|
oninput=${(e) => {
|
||||||
onchange=${(e) => message.value = e.target.value}
|
message.value = e.target.value;
|
||||||
|
chatMessage.value = "";
|
||||||
|
}}
|
||||||
onkeypress=${enterSubmits}
|
onkeypress=${enterSubmits}
|
||||||
placeholder="Say something..."
|
placeholder="Say something..."
|
||||||
rows=2
|
rows=2
|
||||||
|
@ -836,6 +838,7 @@
|
||||||
} else{
|
} else{
|
||||||
document.getElementById('_prompt').value = selectedValue;
|
document.getElementById('_prompt').value = selectedValue;
|
||||||
session.value.prompt = selectedValue;
|
session.value.prompt = selectedValue;
|
||||||
|
chatMessage.value = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue