Skip to content

Commit d96ac92

Browse files
committed
Present errors on demo form only on submit
1 parent f7f30f4 commit d96ac92

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/Chapters/GettingStarted.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ update msg model =
263263
{ model
264264
| addressFields = fields
265265
, address = Result.toMaybe result
266-
, submitted = True
266+
, submitted = False
267267
}
268268
269269
FormSubmitted ->

docs/src/Support/DemoForm.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ update msg model =
9393
{ model
9494
| addressFields = fields
9595
, address = Result.toMaybe result
96-
, submitted = True
96+
, submitted = False
9797
}
9898

9999
FormSubmitted ->

0 commit comments

Comments
 (0)