SolidJSS
SolidJSโ€ข3y agoโ€ข
23 replies
Julio Barros

Events (oninput on keyup) stopped working?

I just asked in the solid-start channel but this may be a bigger issue than that. I may have done something dumb but I'm using solid start and my event handlers have stopped working. They were fine a little while ago but now none of them seem to fire (the value never changes). I've even gone back to the tutorial to get a basic example (code below) and it does not work. Any ideas on what I could have goofed up? I don't see any errors or warnings in either the browser console or the server window.
import { createSignal } from "solid-js";export default function FormExample() {  const [value, setValue] = createSignal("");  function handleInput(e: Event) {    console.log("WTF");    const target = e.target as HTMLInputElement;    setValue(target.value);  }  return (    <div>      <div> The value is {value()}</div>      <input type="text" oninput={handleInput} />    </div>  );}
Was this page helpful?