Fix autofocus cursor placement

rust
Elnu 2 years ago
parent fa7857ba84
commit de27baa769

@ -11,7 +11,11 @@
<script>
if (window.location.href.split('?')[1] === "nav") {
window.history.replaceState(null, null, window.location.pathname);
document.getElementById("navInput").focus();
const navInput = document.getElementById("navInput");
navInput.focus();
const tmp = navInput.value;
navInput.value = "";
navInput.value = tmp;
}
</script>
{{ if not ($scratch.Get "isLatest") }}

Loading…
Cancel
Save