diff --git a/lib/berrypod_web/components/core_components.ex b/lib/berrypod_web/components/core_components.ex index af73dde..834ea68 100644 --- a/lib/berrypod_web/components/core_components.ex +++ b/lib/berrypod_web/components/core_components.ex @@ -48,6 +48,7 @@ defmodule BerrypodWeb.CoreComponents do role={if(@kind == :error, do: "alert", else: "status")} aria-live={if(@kind == :error, do: "assertive", else: "polite")} class="admin-banner" + phx-mounted={JS.dispatch("scroll-into-view", to: "##{@id}")} {@rest} >