Use onCheck

This commit is contained in:
Tereza Sokol 2018-11-30 13:36:05 -05:00
parent e16e9d3d09
commit bbc7cfc7b0

View File

@ -271,7 +271,7 @@ viewCheckbox model config =
[ Html.checkbox model.identifier
(selectedToMaybe model.selected)
[ Widget.label model.label
, Events.onClick (model.setterMsg toggledValue)
, Events.onCheck (\_ -> model.setterMsg toggledValue)
, Attributes.id model.identifier
, Attributes.disabled model.disabled
]