diff --git a/src/main.rs b/src/main.rs index 2478c64..e2a5715 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,7 @@ fn index() -> Response { body { main { h1 { "To-do" } - form hx-post="/add" hx-target="#list" hx-swap="innerHTML" { + form hx-post="/add" hx-target="#list" hx-swap="innerHTML" hx-on:submit="this.elements.task.value = ''" { input type="text" name="task" placeholder="Task"; input type="submit" value="Add"; }