Skip to content

Commit 8cb6514

Browse files
committed
🐛 fixed broken element children
1 parent c6e771b commit 8cb6514

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/UI/Elements.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ function base(string $href, array $props = [])
409409
*/
410410
function title(string $title, array $props = [])
411411
{
412-
return UI::createElement("title", $props, [$title]);
412+
return UI::createElement("title", array_merge(
413+
$props,
414+
["children" => $title]
415+
));
413416
}
414417

415418
/**
@@ -714,7 +717,10 @@ function textarea(string $name, array $props = [], string $children = "")
714717

715718
$props["name"] = $name;
716719

717-
$output .= UI::createElement("textarea", $props, [$children]);
720+
$output .= UI::createElement("textarea", array_merge(
721+
$props,
722+
["children" => $children]
723+
));
718724
return $output;
719725
}
720726

0 commit comments

Comments
 (0)