replace jQuery's trigger('input') on #send_textarea with native events because jQuery does not dispatch the native event

This commit is contained in:
LenAnderson
2024-04-23 10:59:59 -04:00
parent 6dc5337952
commit 86806aa2ac
4 changed files with 16 additions and 16 deletions

View File

@@ -804,7 +804,7 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
const bias = getBiasStrings(userInput, type);
await sendMessageAsUser(userInput, bias.messageBias);
await saveChatConditional();
$('#send_textarea').val('').trigger('input');
$('#send_textarea').val('')[0].dispatchEvent(new Event('input', { bubbles:true }));
}
// now the real generation begins: cycle through every activated character