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,6 +253,7 @@ class GitLabDropdown ...@@ -252,6 +253,7 @@ class GitLabDropdown
if selected if selected
cssClass = "is-active" cssClass = "is-active"
if @highlight
text = @highlightTextMatches(text, @filterInput.val()) text = @highlightTextMatches(text, @filterInput.val())
html = "<li>" html = "<li>"
......
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