Skip to content

Commit bb2591e

Browse files
Here small improvement of example with unordered list (#3706)
1 parent cafff40 commit bb2591e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/phoenix_component.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ defmodule Phoenix.Component do
328328
329329
def unordered_list(assigns) do
330330
~H"""
331-
<ul :for={entry <- @entries}>
332-
<li>{render_slot(@inner_block, entry)}</li>
331+
<ul>
332+
<li :for={entry <- @entries}>{render_slot(@inner_block, entry)}</li>
333333
</ul>
334334
"""
335335
end

0 commit comments

Comments
 (0)