Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"elm/core": "1.0.0 <= v < 2.0.0",
"elm/html": "1.0.0 <= v < 2.0.0",
"elm/json": "1.1.3 <= v < 2.0.0",
"elm-community/list-extra": "8.0.0 <= v < 9.0.0"
},
"test-dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/Form/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import Form.Error as Error exposing (Error)
import Html exposing (Html)
import Html.Attributes as Attributes
import Html.Events as Events
import Json.Decode
import Set exposing (Set)


Expand Down Expand Up @@ -877,7 +878,7 @@ selectField { onChange, onBlur, disabled, value, error, showError, attributes }
[ Html.text ("-- " ++ attributes.placeholder ++ " --") ]
in
Html.select
([ Events.onInput onChange
([ Events.on "change" (Json.Decode.map onChange Events.targetValue)
, Attributes.disabled disabled
]
|> withMaybeAttribute Events.onBlur onBlur
Expand Down