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

Add param to skip enterCallback

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