diff --git a/installer/templates/phx_assets/tailwind.config.js b/installer/templates/phx_assets/tailwind.config.js
index 743c7a7947..8675d6cf1b 100644
--- a/installer/templates/phx_assets/tailwind.config.js
+++ b/installer/templates/phx_assets/tailwind.config.js
@@ -25,7 +25,6 @@ module.exports = {
//
//
//
- plugin(({addVariant}) => addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])),
plugin(({addVariant}) => addVariant("phx-click-loading", [".phx-click-loading&", ".phx-click-loading &"])),
plugin(({addVariant}) => addVariant("phx-submit-loading", [".phx-submit-loading&", ".phx-submit-loading &"])),
plugin(({addVariant}) => addVariant("phx-change-loading", [".phx-change-loading&", ".phx-change-loading &"])),
diff --git a/installer/templates/phx_single/mix.exs b/installer/templates/phx_single/mix.exs
index c9e34e1ee2..e8d850333a 100644
--- a/installer/templates/phx_single/mix.exs
+++ b/installer/templates/phx_single/mix.exs
@@ -37,10 +37,10 @@ defmodule <%= @app_module %>.MixProject do
defp deps do
[
<%= @phoenix_dep %>,<%= if @ecto do %>
- {:phoenix_ecto, "~> 4.4"},
+ {:phoenix_ecto, "~> 4.5"},
{:ecto_sql, "~> 3.10"},
{<%= inspect @adapter_app %>, ">= 0.0.0"},<% end %><%= if @html do %>
- {:phoenix_html, "~> 4.0"},
+ {:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.20.2"},
{:floki, ">= 0.30.0", only: :test},<% end %><%= if @dashboard do %>
diff --git a/installer/templates/phx_umbrella/apps/app_name_web/mix.exs b/installer/templates/phx_umbrella/apps/app_name_web/mix.exs
index bd538eae43..4884535ff4 100644
--- a/installer/templates/phx_umbrella/apps/app_name_web/mix.exs
+++ b/installer/templates/phx_umbrella/apps/app_name_web/mix.exs
@@ -37,8 +37,8 @@ defmodule <%= @web_namespace %>.MixProject do
defp deps do
[
<%= @phoenix_dep %>,<%= if @ecto do %>
- {:phoenix_ecto, "~> 4.4"},<% end %><%= if @html do %>
- {:phoenix_html, "~> 4.0"},
+ {:phoenix_ecto, "~> 4.5"},<% end %><%= if @html do %>
+ {:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.20.2"},
{:floki, ">= 0.30.0", only: :test},<% end %><%= if @dashboard do %>
diff --git a/installer/templates/phx_web/components/core_components.ex b/installer/templates/phx_web/components/core_components.ex
index 25d79a6c2d..af68d20019 100644
--- a/installer/templates/phx_web/components/core_components.ex
+++ b/installer/templates/phx_web/components/core_components.ex
@@ -294,9 +294,11 @@ defmodule <%= @web_namespace %>.CoreComponents do
slot :inner_block
def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
+ errors = if Phoenix.Component.used_input?(field), do: field.errors, else: []
+
assigns
|> assign(field: nil, id: assigns.id || field.id)
- |> assign(:errors, Enum.map(field.errors, &translate_error(&1)))
+ |> assign(:errors, Enum.map(errors, &translate_error(&1)))
|> assign_new(:name, fn -> if assigns.multiple, do: field.name <> "[]", else: field.name end)
|> assign_new(:value, fn -> field.value end)
|> input()
@@ -309,7 +311,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
end)
~H"""
-
+
.CoreComponents do
def input(%{type: "select"} = assigns) do
~H"""
-
+
<.label for={@id}><%%= @label %>
.CoreComponents do
def input(%{type: "textarea"} = assigns) do
~H"""
-
+
<.label for={@id}><%%= @label %>