Pass unique id to switch input output

This commit is contained in:
Jonatan Kłosko 2023-07-03 09:47:30 +02:00
parent 2272f1445f
commit 610415144a

View file

@ -110,7 +110,7 @@ defmodule LivebookWeb.Output.InputComponent do
defp input_output(%{attrs: %{type: :checkbox}} = assigns) do defp input_output(%{attrs: %{type: :checkbox}} = assigns) do
~H""" ~H"""
<div class="mt-1"> <div class="mt-1">
<.switch_field data-el-input name="html_value" value={@value} /> <.switch_field data-el-input name="html_value" value={@value} id={@id} />
</div> </div>
""" """
end end