1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

fileserver: Prevent focusing filter from scrolling on page load (#4393)

This commit is contained in:
Klaus Helenius 2021-10-20 19:15:58 +03:00 committed by GitHub
parent a2119c09e9
commit a21d5a001f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -430,7 +430,7 @@ footer {
</footer>
<script>
var filterEl = document.getElementById('filter');
filterEl.focus();
filterEl.focus({ preventScroll: true });
function initFilter() {
if (!filterEl.value) {