Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
54e6701facae
Commit
ea711454
authored
Apr 18, 2016
by
Phil Hughes
Browse files
Fixed issue with multi select not working with arrow keys
parent
72c89c1bf64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/gl_dropdown.js.coffee
View file @
54e6701f
...
...
@@ -32,10 +32,8 @@ class GitLabDropdownFilter
else
if
@
input
.
val
()
is
""
and
$inputContainer
.
hasClass
HAS_VALUE_CLASS
$inputContainer
.
removeClass
HAS_VALUE_CLASS
if
keyCode
is
13
and
@
input
.
val
()
isnt
""
if
@
options
.
enterCallback
@
options
.
enterCallback
()
return
if
keyCode
is
13
return
false
clearTimeout
timeout
timeout
=
setTimeout
=>
...
...
@@ -132,7 +130,6 @@ class GitLabDropdown
@
filterInput
=
@
getElement
(
FILTER_INPUT
)
@
highlight
=
false
@
filterInputBlur
=
true
@
enterCallback
=
true
}
=
@
options
self
=
@
...
...
@@ -178,9 +175,6 @@ class GitLabDropdown
callback
:
(
data
)
=>
currentIndex
=
-
1
@
parseData
data
enterCallback
:
=>
if
@
enterCallback
@
selectRowAtIndex
0
# Event listeners
...
...
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