Skip to content

Commit

Permalink
Close the dropdown when item is selected
Browse files Browse the repository at this point in the history
We already have an event that handles an item selection, now we just
need to change the model's state to "closed".
  • Loading branch information
JoelQ committed Jul 5, 2017
1 parent f19dc86 commit 2eff679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ update msg model =
{ model | state = Closed }

ItemSelected value ->
{ model | selected = Just value }
{ model | selected = Just value, state = Closed }

0 comments on commit 2eff679

Please sign in to comment.