Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
152
Issues
152
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
3f07580f
Commit
3f07580f
authored
Oct 22, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[react] use defaultChecked when there is no onChange handler
parent
9c4f2849
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
FacetsTable.purs
src/Gargantext/Components/FacetsTable.purs
+4
-1
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+1
-1
Sidebar.purs
src/Gargantext/Components/GraphExplorer/Sidebar.purs
+1
-1
No files found.
src/Gargantext/Components/FacetsTable.purs
View file @
3f07580f
...
...
@@ -330,7 +330,10 @@ pageCpt = R.hooksComponentWithModule thisModule "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 { defaultChecked: isChecked id
, on: { click: toggleClick }
, type: "checkbox"
}
]
, delete: true }
where
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
3f07580f
...
...
@@ -247,7 +247,7 @@ checkboxes :: forall a
-> R.Element
checkboxes xs (val /\ set) =
H.fieldset {} $ map (\a -> H.div {} [ H.input { type: "checkbox"
,
c
hecked: Set.member a val
,
defaultC
hecked: Set.member a val
, on: { click: \_ -> set
$ const
$ toggleSet a val
...
...
src/Gargantext/Components/GraphExplorer/Sidebar.purs
View file @
3f07580f
...
...
@@ -110,7 +110,7 @@ sideTab (Opened SideTabData) props =
[ RH.span {} [ RH.text text ]
, RH.input { type: "checkbox"
, className: "checkbox"
,
c
hecked: true
,
defaultC
hecked: true
, title: "Mark as completed" } ]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment