mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 06:48:07 +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
|
||||
~H"""
|
||||
<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>
|
||||
"""
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue