Skip to content

Commit

Permalink
fileserver: Prevent focusing filter from scrolling on page load (#4393)
Browse files Browse the repository at this point in the history
  • Loading branch information
warbaque committed Oct 20, 2021
1 parent a2119c0 commit a21d5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/fileserver/browsetpl.go
Expand Up @@ -430,7 +430,7 @@ footer {
</footer>
<script>
var filterEl = document.getElementById('filter');
filterEl.focus();
filterEl.focus({ preventScroll: true });
function initFilter() {
if (!filterEl.value) {
Expand Down

0 comments on commit a21d5a0

Please sign in to comment.