Commit 187f1c41 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Add param to skip enterCallback

parent d7350dea
......@@ -108,6 +108,7 @@ class GitLabDropdown
@filterInput = @getElement(FILTER_INPUT)
@highlight = false
@filterInputBlur = true
@enterCallback = true
} = @options
self = @
......@@ -147,7 +148,8 @@ class GitLabDropdown
@parseData data
@highlightRow 1
enterCallback: =>
@selectFirstRow()
if @enterCallback
@selectFirstRow()
# Event listeners
@dropdown.on "shown.bs.dropdown", @opened
......
......@@ -56,6 +56,7 @@ class @SearchAutocomplete
filterable: true
filterRemote: true
highlight: true
enterCallback: false
filterInput: 'input#search'
search:
fields: ['text']
......
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