From 26b5799f19a19f10bc079a16cd208918f1389291 Mon Sep 17 00:00:00 2001 From: Jamil Abreu Date: Wed, 16 Aug 2023 09:50:50 -0400 Subject: [PATCH] fix flash function selector --- installer/templates/phx_web/components/core_components.ex | 2 +- priv/templates/phx.gen.live/core_components.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/templates/phx_web/components/core_components.ex b/installer/templates/phx_web/components/core_components.ex index 2fe64b24b3..f7060d687f 100644 --- a/installer/templates/phx_web/components/core_components.ex +++ b/installer/templates/phx_web/components/core_components.ex @@ -110,7 +110,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
hide("##{@id}")} + phx-click={JS.push("lv:clear-flash", value: %{key: @kind}) |> hide("#{@id}")} role="alert" class={[ "fixed top-2 right-2 w-80 sm:w-96 z-50 rounded-lg p-3 ring-1", diff --git a/priv/templates/phx.gen.live/core_components.ex b/priv/templates/phx.gen.live/core_components.ex index 2fe64b24b3..f7060d687f 100644 --- a/priv/templates/phx.gen.live/core_components.ex +++ b/priv/templates/phx.gen.live/core_components.ex @@ -110,7 +110,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
hide("##{@id}")} + phx-click={JS.push("lv:clear-flash", value: %{key: @kind}) |> hide("#{@id}")} role="alert" class={[ "fixed top-2 right-2 w-80 sm:w-96 z-50 rounded-lg p-3 ring-1",