Skip to content
Snippets Groups Projects
Commit 1dc706db authored by Alfredo Sumaran's avatar Alfredo Sumaran
Browse files

Improve conditional

parent f91cfa8e
No related branches found
No related tags found
1 merge request!5111Fixed enter submitting form in dropdown
Pipeline #
Loading
Loading
@@ -31,7 +31,7 @@ class GitLabDropdownFilter
.on 'keyup', (e) =>
keyCode = e.which
 
return if ARROW_KEY_CODES.indexOf(keyCode) >= 0
return unless ARROW_KEY_CODES.indexOf(keyCode) is -1
 
if @input.val() isnt '' and !$inputContainer.hasClass HAS_VALUE_CLASS
$inputContainer.addClass HAS_VALUE_CLASS
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment