Commit 819182ff authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Refactor: checked -> defaultChecked to avoid react errors

parent 1d9bcf4a
......@@ -343,7 +343,9 @@ pageCpt = R.hooksComponent "G.C.FacetsTable.Page" cpt
, maybeStricken delete [ H.text source ]
, maybeStricken delete [ H.text authors ]
-- , maybeStricken $ intercalate [comma] (pairUrl <$> pairs)
, H.input { type: "checkbox", checked: isChecked id, on: { click: toggleClick } }
, H.input { type: "checkbox"
, defaultChecked: isChecked id
, on: { click: toggleClick } }
]
, delete: true }
where
......
......@@ -114,7 +114,7 @@ sidebarCpt = R.hooksComponent "G.C.GE.S.sidebar" cpt
[ RH.span {} [ RH.text text ]
, RH.input { type: "checkbox"
, className: "checkbox"
, checked: true
, defaultChecked: true
, title: "Mark as completed" } ]
removeButton text rType props nodesMap =
......
......@@ -120,10 +120,10 @@ searchFieldComponent = R.hooksComponent "G.C.S.SearchField" cpt
liCpt org =
H.li {}
[ H.input { type: "checkbox"
, checked: isIn org search.datafield
, on: {
change: \_ -> (setSearch $ _ { datafield = updateFilter org search.datafield })
}
, defaultChecked: isIn org search.datafield
, on: {
change: \_ -> (setSearch $ _ { datafield = updateFilter org search.datafield })
}
}
, if org == All_IMT
then H.i {} [H.text $ " " <> show org]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment