mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix weight not working
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.1.776'
|
version = '2.1.777'
|
||||||
|
|||||||
@@ -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) {
|
function keyupEditAttention(event) {
|
||||||
let target = event.originalTarget || event.composedPath()[0];
|
let target = event.originalTarget || event.composedPath()[0];
|
||||||
if (!target.matches("*:is([id*='_prompt'], .prompt) textarea")) return;
|
if (!target.matches("*:is([id*='_prompt'], .prompt) textarea")) return;
|
||||||
@@ -113,6 +119,8 @@ function keyupEditAttention(event) {
|
|||||||
target.selectionStart = selectionStart;
|
target.selectionStart = selectionStart;
|
||||||
target.selectionEnd = selectionEnd;
|
target.selectionEnd = selectionEnd;
|
||||||
|
|
||||||
|
updateInput(target);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addEventListener('keydown', (event) => {
|
addEventListener('keydown', (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user