diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-09-10 20:39:52 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-09-10 20:39:52 +0100 |
commit | e04d6cd53eb03c08528893f1fd89fc5e2f0a7b65 (patch) | |
tree | 92d4cd087dea93d7f42648657e8b1983ce2409c4 | |
parent | 485d9065fd53983bf60f4741e6b9a3979d1db4c5 (diff) | |
download | lustre-e04d6cd53eb03c08528893f1fd89fc5e2f0a7b65.tar.gz lustre-e04d6cd53eb03c08528893f1fd89fc5e2f0a7b65.zip |
:bug: Fixed a bug in the input event decoder.
-rw-r--r-- | lib/src/lustre/event.gleam | 3 |
1 files changed, 1 insertions, 2 deletions
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) } |