Commit 1dc706db authored by Alfredo Sumaran's avatar Alfredo Sumaran

Improve conditional

parent f91cfa8e
...@@ -31,7 +31,7 @@ class GitLabDropdownFilter ...@@ -31,7 +31,7 @@ class GitLabDropdownFilter
.on 'keyup', (e) => .on 'keyup', (e) =>
keyCode = e.which 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 if @input.val() isnt '' and !$inputContainer.hasClass HAS_VALUE_CLASS
$inputContainer.addClass HAS_VALUE_CLASS $inputContainer.addClass HAS_VALUE_CLASS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment