mirror of https://github.com/caddyserver/caddy.git
fileserver: Prevent focusing filter from scrolling on page load (#4393)
This commit is contained in:
parent
a2119c09e9
commit
a21d5a001f
|
@ -430,7 +430,7 @@ footer {
|
|||
</footer>
|
||||
<script>
|
||||
var filterEl = document.getElementById('filter');
|
||||
filterEl.focus();
|
||||
filterEl.focus({ preventScroll: true });
|
||||
|
||||
function initFilter() {
|
||||
if (!filterEl.value) {
|
||||
|
|
Loading…
Reference in New Issue