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) {
|
||||
if(event.target.tagName == "CHUNK") {
|
||||
current_editing_chunk = event.target;
|
||||
}
|
||||
event.target.focus();
|
||||
} else {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue