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
139
Issues
139
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
4450820a
Unverified
Commit
4450820a
authored
Nov 28, 2018
by
Nicolas Pouillard
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tree] Use defaultValue instead of value on input when the component is uncontrolled
parent
b1169f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Tree.purs
src/Gargantext/Components/Tree.purs
+3
-3
No files found.
src/Gargantext/Components/Tree.purs
View file @
4450820a
...
@@ -21,7 +21,7 @@ import Effect.Console (log)
...
@@ -21,7 +21,7 @@ import Effect.Console (log)
import Prelude (identity)
import Prelude (identity)
import React (ReactElement)
import React (ReactElement)
import React.DOM (a, button, div, h5, i, input, li, span, text, ul)
import React.DOM (a, button, div, h5, i, input, li, span, text, ul)
import React.DOM.Props (_id, _type, className, href, title, onClick, onInput, placeholder, style,
v
alue, _data)
import React.DOM.Props (_id, _type, className, href, title, onClick, onInput, placeholder, style,
defaultV
alue, _data)
import React.DOM.Props as DOM
import React.DOM.Props as DOM
import Thermite (PerformAction, Render, Spec, createClass, defaultPerformAction, defaultRender, modifyState_, simpleSpec)
import Thermite (PerformAction, Render, Spec, createClass, defaultPerformAction, defaultRender, modifyState_, simpleSpec)
...
@@ -233,7 +233,7 @@ renameTreeView d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeV
...
@@ -233,7 +233,7 @@ renameTreeView d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeV
[
[
input [ _type "text"
input [ _type "text"
, placeholder "Rename Node"
, placeholder "Rename Node"
,
v
alue $ getRenameNodeValue s
,
defaultV
alue $ getRenameNodeValue s
, style {float: "left"}
, style {float: "left"}
, className "col-md-2 form-control"
, className "col-md-2 form-control"
, onInput \e -> d (RenameNode (unsafeEventValue e) nid)
, onInput \e -> d (RenameNode (unsafeEventValue e) nid)
...
@@ -294,7 +294,7 @@ createNodeView d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeV
...
@@ -294,7 +294,7 @@ createNodeView d s@(NTree (LNode {id, name, nodeType, open, popOver, renameNodeV
[
[
input [ _type "text"
input [ _type "text"
, placeholder "Create Node"
, placeholder "Create Node"
,
v
alue $ getCreateNodeValue s
,
defaultV
alue $ getCreateNodeValue s
, className "col-md-12 form-control"
, className "col-md-12 form-control"
, onInput \e -> d (SetNodeValue (unsafeEventValue e) nid)
, onInput \e -> d (SetNodeValue (unsafeEventValue e) nid)
]
]
...
...
Nicolas Pouillard
@np
mentioned in issue
#28 (closed)
·
Nov 29, 2018
mentioned in issue
#28 (closed)
mentioned in issue #28
Toggle commit list
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