diff --git a/examples/server/public/index.html b/examples/server/public/index.html index ef19c1ff4..ed7636f9d 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -650,8 +650,10 @@ message.value = e.target.value} - onchange=${(e) => message.value = e.target.value} + oninput=${(e) => { + message.value = e.target.value; + chatMessage.value = ""; + }} onkeypress=${enterSubmits} placeholder="Say something..." rows=2 @@ -836,6 +838,7 @@ } else{ document.getElementById('_prompt').value = selectedValue; session.value.prompt = selectedValue; + chatMessage.value = ""; } }; return (