Skip to content

Commit

Permalink
simple-application.md: consistent use of type=submit (#2657)
Browse files Browse the repository at this point in the history
When following tutorial and typing everything in, I was confused that Save button didn't work. Turned out that tutorial switches type from "button" to "submit", which I haven't spotted. Perhaps it should had been "submit" from start?
  • Loading branch information
danbst authored Feb 14, 2021
1 parent f5b41aa commit 773e570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/simple-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ module.exports = {
m("input.input[type=text][placeholder=First name]"),
m("label.label", "Last name"),
m("input.input[placeholder=Last name]"),
m("button.button[type=button]", "Save"),
m("button.button[type=submit]", "Save"),
])
}
}
Expand Down Expand Up @@ -480,7 +480,7 @@ module.exports = {
m("input.input[type=text][placeholder=First name]", {value: User.current.firstName}),
m("label.label", "Last name"),
m("input.input[placeholder=Last name]", {value: User.current.lastName}),
m("button.button[type=button]", "Save"),
m("button.button[type=submit]", "Save"),
])
}
}
Expand Down

0 comments on commit 773e570

Please sign in to comment.