SimpleChatTCRV:Remember to reset the Input File type value

This commit is contained in:
hanishkvc 2025-11-12 23:56:32 +05:30
parent a2a0a378a9
commit dc71a9be4c
2 changed files with 7 additions and 0 deletions

View File

@ -730,6 +730,8 @@ sliding window based drop off or even before they kick in, this can help in many
* show any image loaded by the user, in the corresponding image button
* consolidate dataurl handling into a bunch of helper functions.
* trap quota errors wrt localStorage etal
* dont forget to reset the file type input's value, so that reselecting the same image still
triggers the input's change event.
* SimpleChat class now allows extra fields to be specified while adding, in a generic way using a
object/literal object or equivalent.
@ -768,6 +770,10 @@ it is easy to identify and remove chat messages from the UI even in sliding wind
Have a seperate helper to show the user input area, based on set state. And have support for multiple images
if the models support same.
Make chat show messages by default only appends new chat messages to existing list of shown messages in ui,
instead of clearing ui and recreating each message ui element again. Have forgotten what I had originally
implemented, need to cross check.
### Debuging the handshake and beyond

View File

@ -252,6 +252,7 @@ export function el_creatediv_inputfilebtn(id, label, defaultValue, acceptable, c
elX.el.accept = acceptable
let idB = `${id}-button`
let elB = el_create_button(idB, (mev) => {
elX.el.value = ""
elX.el.click()
}, idB, label, `<p>${label}</p>`)
return { div: elX.div, el: elX.el, elB: elB };