add the "checked" attribute to segmented controls that are selected

This commit is contained in:
Brian Hicks 2020-08-13 16:43:49 -05:00
parent 9053c4d283
commit 2e1fa2e36b

View File

@ -96,6 +96,7 @@ viewRadioGroup config =
(radio name (config.toString option.value) isSelected <|
(Events.onCheck (\_ -> config.onSelect option.value)
:: css [ Css.opacity Css.zero ]
:: Attributes.checked isSelected
:: Style.invisible
)
)