Commit 2d0f8f92 authored by Alfredo Sumaran's avatar Alfredo Sumaran Committed by Jacob Schatz

Disable highlighting by default

parent b5bd497a
...@@ -88,6 +88,7 @@ class GitLabDropdown ...@@ -88,6 +88,7 @@ class GitLabDropdown
{ {
# If no input is passed create a default one # If no input is passed create a default one
@filterInput = @$(FILTER_INPUT) @filterInput = @$(FILTER_INPUT)
@highlight = false
} = @options } = @options
self = @ self = @
...@@ -252,7 +253,8 @@ class GitLabDropdown ...@@ -252,7 +253,8 @@ class GitLabDropdown
if selected if selected
cssClass = "is-active" cssClass = "is-active"
text = @highlightTextMatches(text, @filterInput.val()) if @highlight
text = @highlightTextMatches(text, @filterInput.val())
html = "<li>" html = "<li>"
html += "<a href='#{url}' class='#{cssClass}'>" html += "<a href='#{url}' class='#{cssClass}'>"
......
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