fix weight not working

This commit is contained in:
lllyasviel 2023-11-05 04:58:22 -08:00
parent 87de9edb1a
commit e19e01ae61
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
version = '2.1.776'
version = '2.1.777'

View File

@ -1,3 +1,9 @@
function updateInput(target) {
let e = new Event("input", {bubbles: true});
Object.defineProperty(e, "target", {value: target});
target.dispatchEvent(e);
}
function keyupEditAttention(event) {
let target = event.originalTarget || event.composedPath()[0];
if (!target.matches("*:is([id*='_prompt'], .prompt) textarea")) return;
@ -113,6 +119,8 @@ function keyupEditAttention(event) {
target.selectionStart = selectionStart;
target.selectionEnd = selectionEnd;
updateInput(target);
}
addEventListener('keydown', (event) => {