Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove autofocus from filter bars (#6107)

Adam Rutkowski1ceebd2d0bc6
diff --git a/lib/plausible_web/components/generic.ex b/lib/plausible_web/components/generic.ex
index 6e2f54fefa..55e2ff9874 100644
--- a/lib/plausible_web/components/generic.ex
+++ b/lib/plausible_web/components/generic.ex
@@ -1193,7 +1193,6 @@ defmodule PlausibleWeb.Components.Generic do
x-ref="filter_text"
phx-debounce={200}
autocomoplete="off"
- autofocus
x-on:keydown.slash.window="if (['INPUT', 'TEXTAREA', 'SELECT'].includes(document.activeElement.tagName) || document.activeElement.isContentEditable) return; $event.preventDefault(); $refs.filter_text.focus(); $refs.filter_text.select();"
x-on:keydown.escape="$refs.filter_text.blur(); $refs.reset_filter?.dispatchEvent(new Event('click', {bubbles: true, cancelable: true}));"
value={@filter_text}