mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 14:58:35 +08:00
Pass unique id to switch input output
This commit is contained in:
parent
2272f1445f
commit
610415144a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue