aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/src/lustre/event.gleam3
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)
}