summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/fileserver/browsetpl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browsetpl.go b/modules/caddyhttp/fileserver/browsetpl.go
index 72b0ec6..06ef06d 100644
--- a/modules/caddyhttp/fileserver/browsetpl.go
+++ b/modules/caddyhttp/fileserver/browsetpl.go
@@ -430,7 +430,7 @@ footer {
</footer>
<script>
var filterEl = document.getElementById('filter');
- filterEl.focus();
+ filterEl.focus({ preventScroll: true });
function initFilter() {
if (!filterEl.value) {