From e04d6cd53eb03c08528893f1fd89fc5e2f0a7b65 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sun, 10 Sep 2023 20:39:52 +0100 Subject: :bug: Fixed a bug in the input event decoder. --- lib/src/lustre/event.gleam | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/src') diff --git a/lib/src/lustre/event.gleam b/lib/src/lustre/event.gleam index e0b42b9..bbd39c7 100644 --- a/lib/src/lustre/event.gleam +++ b/lib/src/lustre/event.gleam @@ -115,8 +115,7 @@ pub fn on_keyup(msg: fn(String) -> msg) -> Attribute(msg) { pub fn on_input(msg: fn(String) -> msg) -> Attribute(msg) { use event <- on("input") - event - |> dynamic.field("key", dynamic.string) + value(event) |> result.map(msg) } -- cgit v1.2.3