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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
b2fc2d2a
Commit
b2fc2d2a
authored
Oct 02, 2024
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/674-dev-search-reload' into dev
parents
fe0956c4
dee81710
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
InputWithAutocomplete.purs
src/Gargantext/Components/InputWithAutocomplete.purs
+11
-1
No files found.
src/Gargantext/Components/InputWithAutocomplete.purs
View file @
b2fc2d2a
...
...
@@ -78,6 +78,7 @@ inputWithAutocompleteCpt = here.component "inputWithAutocomplete" cpt
, on: { focus: onFocus completions state'
, input: onInput completions
, change: onInput completions
, keyDown: onInputKeyDown inputRef
, keyUp: onInputKeyUp inputRef
, blur: onBlur completions containerRef
}
...
...
@@ -140,7 +141,16 @@ inputWithAutocompleteCpt = here.component "inputWithAutocomplete" cpt
R2.blur input
pure false
else
pure $ false
pure false
onInputKeyDown :: R.Ref (Nullable DOM.Element) -> DE.KeyboardEvent -> Effect Boolean
onInputKeyDown _ e = do
if DE.key e == "Enter" then do
R2.preventDefault e
R2.stopPropagation e
pure false
else
pure false
---------------------------------------------------------
...
...
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