mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
replace jQuery's trigger('input') on #send_textarea with native events because jQuery does not dispatch the native event
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user