Skip to content

Commit

Permalink
docs: fix misnamed form field in <Form/> example (#2024)
Browse files Browse the repository at this point in the history
Co-authored-by: datewu <>
  • Loading branch information
datewu authored Nov 17, 2023
1 parent 85dd726 commit 4d549f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/src/router/20_form.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn FormExample() -> impl IntoView {

view! {
<Form method="GET" action="">
<input type="search" name="search" value=search/>
<input type="search" name="q" value=search/>
<input type="submit"/>
</Form>
<Transition fallback=move || ()>
Expand All @@ -53,7 +53,7 @@ We can actually take it a step further and do something kind of clever:
```rust
view! {
<Form method="GET" action="">
<input type="search" name="search" value=search
<input type="search" name="q" value=search
oninput="this.form.requestSubmit()"
/>
</Form>
Expand Down

0 comments on commit 4d549f7

Please sign in to comment.