Skip to content

Commit

Permalink
Remove unused inner block on input
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 15, 2024
1 parent ee75ad7 commit c54d90c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions installer/templates/phx_web/components/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ defmodule <%= @web_namespace %>.CoreComponents do
include: ~w(accept autocomplete capture cols disabled form list max maxlength min minlength
multiple pattern placeholder readonly required rows size step)

slot :inner_block

def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
errors = if Phoenix.Component.used_input?(field), do: field.errors, else: []

Expand Down
2 changes: 0 additions & 2 deletions priv/templates/phx.gen.live/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ defmodule <%= @web_namespace %>.CoreComponents do
include: ~w(accept autocomplete capture cols disabled form list max maxlength min minlength
multiple pattern placeholder readonly required rows size step)

slot :inner_block

def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
errors = if Phoenix.Component.used_input?(field), do: field.errors, else: []

Expand Down

0 comments on commit c54d90c

Please sign in to comment.