From 285846d58c12cb3a677a01491cca4faa4119b801 Mon Sep 17 00:00:00 2001 From: Andrew Timberlake Date: Tue, 4 Mar 2025 10:41:49 +0200 Subject: [PATCH] Update core components to support multiple=true on checkbox inputs --- installer/templates/phx_web/components/core_components.ex | 8 ++++---- priv/templates/phx.gen.live/core_components.ex | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/installer/templates/phx_web/components/core_components.ex b/installer/templates/phx_web/components/core_components.ex index 4a8a0ef8b6..8fb2a51b1b 100644 --- a/installer/templates/phx_web/components/core_components.ex +++ b/installer/templates/phx_web/components/core_components.ex @@ -225,7 +225,7 @@ defmodule <%= @web_namespace %>.CoreComponents do attr :checked, :boolean, doc: "the checked flag for checkbox inputs" attr :prompt, :string, default: nil, doc: "the prompt for select inputs" attr :options, :list, doc: "the options to pass to Phoenix.HTML.Form.options_for_select/2" - attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs" + attr :multiple, :boolean, default: false, doc: "the multiple flag for select and checkbox inputs" attr :rest, :global, include: ~w(accept autocomplete capture cols disabled form list max maxlength min minlength @@ -251,12 +251,12 @@ defmodule <%= @web_namespace %>.CoreComponents do ~H"""