From 8825bb9df2487057bb65b69df67c93e7d793a37a Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 28 Nov 2019 11:21:19 +0100 Subject: Use plain links for JS-ified linkradio inputs + fix focus of non-JS linkradios Kind of backwards to use input elements to display a link when they're backed by Javascript anyway. This also avoids the need to create a unique id for each linkradio element. --- elm/ColSelect.elm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'elm/ColSelect.elm') diff --git a/elm/ColSelect.elm b/elm/ColSelect.elm index d8be329b..049cc369 100644 --- a/elm/ColSelect.elm +++ b/elm/ColSelect.elm @@ -68,14 +68,7 @@ update msg model = view : Model -> Html Msg view model = - let - item (cid, cname) = - let selid = "colselect_" ++ cid - in - li [ class "linkradio" ] - [ inputCheck selid (Set.member cid model.sel) (Toggle cid) - , label [ for selid ] [ text cname ] - ] + let item (cid, cname) = li [ ] [ linkRadio (Set.member cid model.sel) (Toggle cid) [ text cname ] ] in DD.view model.dd Api.Normal (text "Select columns") -- cgit v1.2.3