Fix form :for deprecation

This commit is contained in:
Jonatan Kłosko 2023-02-20 20:51:17 +01:00
parent 78cda8ced3
commit 08391f511c
4 changed files with 8 additions and 4 deletions

View file

@ -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"

View file

@ -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}

View file

@ -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"

View file

@ -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"