Skip to content

Commit

Permalink
Handle form submit
Browse files Browse the repository at this point in the history
  • Loading branch information
ingara committed Dec 13, 2019
1 parent 7398fc8 commit 1fb6d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Accessibility exposing (..)
import Browser
import Html exposing (Html)
import Html.Attributes exposing (class, disabled, href, id, placeholder, type_)
import Html.Events exposing (onClick, onInput)
import Html.Events exposing (onClick, onInput, onSubmit)
import Http
import Json.Decode as Decode
import Json.Encode as Encode
Expand Down Expand Up @@ -126,7 +126,7 @@ view model =

viewSignupForm : Model -> Html Msg
viewSignupForm model =
form [ class "form" ]
Html.form [ class "form", onSubmit SubmitClicked ]
[ p [ class "newsletterIntro" ]
[ div [] [ text "Want to stay up to date with the latest news?" ]
, div [] [ text "Sign up for our newsletter!" ]
Expand Down

0 comments on commit 1fb6d9f

Please sign in to comment.