fix weight not working
This commit is contained in:
parent
87de9edb1a
commit
e19e01ae61
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user