From 69e41c1ceb6326a5ee2fc43d2d8b5475e6c37a43 Mon Sep 17 00:00:00 2001 From: Danylo Hlynskyi Date: Sat, 13 Feb 2021 17:51:53 +0200 Subject: [PATCH] simple-application.md: consistent use of type=submit 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? --- docs/simple-application.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/simple-application.md b/docs/simple-application.md index 196499336..5a8021c9d 100644 --- a/docs/simple-application.md +++ b/docs/simple-application.md @@ -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"), ]) } } @@ -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"), ]) } }