From c8867aab178a8532d5269cb7189220e597df8a13 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Wed, 19 Jul 2023 10:49:13 +0100 Subject: :bug: Fixed a bug where the 'for' attribute still used the old react-style 'htmlFor' name. --- src/lustre/attribute.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lustre/attribute.gleam b/src/lustre/attribute.gleam index 7716440..31e63ce 100644 --- a/src/lustre/attribute.gleam +++ b/src/lustre/attribute.gleam @@ -311,7 +311,7 @@ pub fn required(is_required: Bool) -> Attribute(msg) { /// pub fn for(id: String) -> Attribute(msg) { - attribute("htmlFor", id) + attribute("for", id) } // INPUT RANGES ---------------------------------------------------------------- -- cgit v1.2.3