Commit abe56ad6 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Prevents unwanted menu toggling

parent 30eeb453
...@@ -149,9 +149,9 @@ class @SearchAutocomplete ...@@ -149,9 +149,9 @@ class @SearchAutocomplete
# Avoid falsy value to be returned # Avoid falsy value to be returned
return return
onSearchInputClick: => onSearchInputClick: (e) =>
if (@searchInput.val() is '') # Prevents closing the dropdown menu
@disableAutocomplete() e.stopImmediatePropagation()
onSearchInputFocus: => onSearchInputFocus: =>
@wrap.addClass('search-active') @wrap.addClass('search-active')
......
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