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

@@ -422,7 +422,7 @@ function restoreUserInput() {
const userInput = LoadLocal('userInput');
if (userInput) {
$('#send_textarea').val(userInput).trigger('input');
$('#send_textarea').val(userInput)[0].dispatchEvent(new Event('input', { bubbles:true }));
}
}