Skip to content

Commit dd9bf61

Browse files
committed
don't auto wrap, wrap at caller
1 parent 5158843 commit dd9bf61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/phoenix_live_view/test/client_proxy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ defmodule Phoenix.LiveViewTest.ClientProxy do
12721272
_ ->
12731273
# to collect the submitter by selector,
12741274
# need to convert the tree to a lazy here :(
1275-
{form_inputs, fn -> DOM.to_lazy(node) end}
1275+
{form_inputs, fn -> DOM.to_lazy([node]) end}
12761276
end
12771277

12781278
defaults = Enum.reduce(value_inputs, Query.decode_init(), &form_defaults/2)

lib/phoenix_live_view/test/dom.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ defmodule Phoenix.LiveViewTest.DOM do
146146
@doc """
147147
Turns a tree into a lazy.
148148
"""
149-
def to_lazy(tree), do: LazyHTML.from_tree(List.wrap(tree))
149+
def to_lazy(tree), do: LazyHTML.from_tree(tree)
150150

151151
@doc """
152152
Escapes a string for use as a CSS identifier.

0 commit comments

Comments
 (0)