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,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) => {
|
||||
|
||||
Reference in New Issue
Block a user