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
0
Issues
0
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
Grégoire Locqueville
purescript-gargantext
Commits
b93374c6
Commit
b93374c6
authored
Oct 29, 2020
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AnnotatedField] setRef before setMenu
parent
2e469b5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AnnotatedField.purs
src/Gargantext/Components/Annotation/AnnotatedField.purs
+4
-4
No files found.
src/Gargantext/Components/Annotation/AnnotatedField.purs
View file @
b93374c6
...
@@ -76,8 +76,8 @@ annotatedFieldComponent = R.hooksComponentWithModule thisModule "annotatedField"
...
@@ -76,8 +76,8 @@ annotatedFieldComponent = R.hooksComponentWithModule thisModule "annotatedField"
, onClose: \_ -> R.setRef menuRef Nothing
, onClose: \_ -> R.setRef menuRef Nothing
, setList
, setList
}
}
setMenu $ const menu
R.setRef menuRef menu
R.setRef menuRef menu
setMenu $ const menu
mapCompile (Tuple t l) = {text: t, list: l, onSelect}
mapCompile (Tuple t l) = {text: t, list: l, onSelect}
compiled = map mapCompile $ compile ngrams text
compiled = map mapCompile $ compile ngrams text
...
@@ -127,11 +127,11 @@ maybeShowMenu setMenu menuRef setTermList ngrams event = do
...
@@ -127,11 +127,11 @@ maybeShowMenu setMenu menuRef setTermList ngrams event = do
list = findNgramTermList ngrams n
list = findNgramTermList ngrams n
setList t = do
setList t = do
setTermList n list t
setTermList n list t
--setMenu (const Nothing)
R.setRef menuRef Nothing
R.setRef menuRef Nothing
--setMenu (const Nothing)
E.preventDefault event
E.preventDefault event
range <- Sel.getRange sel 0
range <- Sel.getRange sel 0
log2 "[maybeShowMenu] selection range" $ Sel.rangeToTuple range
--
log2 "[maybeShowMenu] selection range" $ Sel.rangeToTuple range
let menu = Just {
let menu = Just {
x
x
, y
, y
...
@@ -140,8 +140,8 @@ maybeShowMenu setMenu menuRef setTermList ngrams event = do
...
@@ -140,8 +140,8 @@ maybeShowMenu setMenu menuRef setTermList ngrams event = do
, onClose: \_ -> R.setRef menuRef Nothing
, onClose: \_ -> R.setRef menuRef Nothing
, setList
, setList
}
}
setMenu $ const $ menu
R.setRef menuRef menu
R.setRef menuRef menu
setMenu $ const $ menu
Nothing -> pure unit
Nothing -> pure unit
-- Nothing -> do
-- Nothing -> do
-- R.setRef menuRef Nothing
-- R.setRef menuRef Nothing
...
...
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