Commit abe56ad6 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Prevents unwanted menu toggling

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