From eb73e7622252e130095d41c0e901feba48ecfaf7 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 16 Mar 2024 22:26:56 +0000 Subject: :bug: Fixed a bug where arguments were passed to Element constructor in the wrong order. --- src/lustre/element.gleam | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lustre/element.gleam b/src/lustre/element.gleam index c491aab..1c5c191 100644 --- a/src/lustre/element.gleam +++ b/src/lustre/element.gleam @@ -154,7 +154,14 @@ pub fn advanced( self_closing: Bool, void: Bool, ) -> Element(msg) { - Element(tag, namespace, attrs, children, self_closing, void) + Element( + namespace: namespace, + tag: tag, + attrs: attrs, + children: children, + self_closing: self_closing, + void: void, + ) } /// A function for turning a Gleam string into a text node. Gleam doesn't have -- cgit v1.2.3