mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 16:44:41 +03:00
add the "checked" attribute to segmented controls that are selected
This commit is contained in:
parent
9053c4d283
commit
2e1fa2e36b
@ -96,6 +96,7 @@ viewRadioGroup config =
|
|||||||
(radio name (config.toString option.value) isSelected <|
|
(radio name (config.toString option.value) isSelected <|
|
||||||
(Events.onCheck (\_ -> config.onSelect option.value)
|
(Events.onCheck (\_ -> config.onSelect option.value)
|
||||||
:: css [ Css.opacity Css.zero ]
|
:: css [ Css.opacity Css.zero ]
|
||||||
|
:: Attributes.checked isSelected
|
||||||
:: Style.invisible
|
:: Style.invisible
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user