diff --git a/src/client/stdlib/generators/input.js b/src/client/stdlib/generators/input.js index 9d7d8ba37..0f94dffde 100644 --- a/src/client/stdlib/generators/input.js +++ b/src/client/stdlib/generators/input.js @@ -4,7 +4,7 @@ export function input(element) { return observe((change) => { const event = eventof(element); let value = valueof(element); - const inputted = () => change(valueof(element)); + const inputted = (event) => change(valueof(event.target)); element.addEventListener(event, inputted); if (value !== undefined) change(value); return () => element.removeEventListener(event, inputted);