mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-09 08:18:40 +01:00
Prevent current_editing_chunk from being a non-chunk element
This commit is contained in:
parent
f0962155b8
commit
7059c18f70
@ -622,7 +622,9 @@ function setadventure(state) {
|
||||
|
||||
function autofocus(event) {
|
||||
if(connected) {
|
||||
current_editing_chunk = event.target;
|
||||
if(event.target.tagName == "CHUNK") {
|
||||
current_editing_chunk = event.target;
|
||||
}
|
||||
event.target.focus();
|
||||
} else {
|
||||
event.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user