mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 04:57:18 +08:00
Fix form :for deprecation
This commit is contained in:
parent
78cda8ced3
commit
08391f511c
4 changed files with 8 additions and 4 deletions
|
@ -16,7 +16,8 @@ defmodule LivebookWeb.HomeLive.ImportContentComponent do
|
|||
</p>
|
||||
<.form
|
||||
:let={f}
|
||||
for={:data}
|
||||
for={%{}}
|
||||
as={:data}
|
||||
id="import-content"
|
||||
phx-submit="import"
|
||||
phx-change="validate"
|
||||
|
|
|
@ -31,7 +31,8 @@ defmodule LivebookWeb.HomeLive.ImportUrlComponent do
|
|||
</p>
|
||||
<.form
|
||||
:let={f}
|
||||
for={:data}
|
||||
for={%{}}
|
||||
as={:data}
|
||||
phx-submit="import"
|
||||
phx-change="validate"
|
||||
phx-target={@myself}
|
||||
|
|
|
@ -50,7 +50,8 @@ defmodule LivebookWeb.SessionLive.AttachedLive do
|
|||
</p>
|
||||
<.form
|
||||
:let={f}
|
||||
for={:data}
|
||||
for={%{}}
|
||||
as={:data}
|
||||
phx-submit="init"
|
||||
phx-change="validate"
|
||||
autocomplete="off"
|
||||
|
|
|
@ -27,7 +27,8 @@ defmodule LivebookWeb.SettingsLive.AddFileSystemComponent do
|
|||
<% end %>
|
||||
<.form
|
||||
:let={f}
|
||||
for={:data}
|
||||
for={%{}}
|
||||
as={:data}
|
||||
phx-target={@myself}
|
||||
phx-submit="add"
|
||||
phx-change="validate"
|
||||
|
|
Loading…
Add table
Reference in a new issue