diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-12-06 16:41:24 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-12-06 16:41:24 +0000 |
commit | 2c7ba7a1d85f33a357e197c0f9994029539b8989 (patch) | |
tree | dc2a76863214948f815e1b499e318b41014aaf6f /app/views/layouts/_search.html.haml | |
parent | b4fb31d9dd12cf979d4014f028aa9ef2de342249 (diff) | |
download | gitlab-ce-2c7ba7a1d85f33a357e197c0f9994029539b8989.tar.gz |
Updates the dropdown to match the docs and remove old hack of stop event propagation35773-search-box-close-dropdown
Diffstat (limited to 'app/views/layouts/_search.html.haml')
-rw-r--r-- | app/views/layouts/_search.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml index 4c5cc249159..1c211869cf8 100644 --- a/app/views/layouts/_search.html.haml +++ b/app/views/layouts/_search.html.haml @@ -13,7 +13,8 @@ .location-badge= label .search-input-wrap .dropdown{ data: { url: search_autocomplete_path } } - = search_field_tag 'search', nil, placeholder: 'Search', class: 'search-input dropdown-menu-toggle no-outline js-search-dashboard-options', spellcheck: false, tabindex: '1', autocomplete: 'off', data: { toggle: 'dropdown', issues_path: issues_dashboard_url, mr_path: merge_requests_dashboard_url }, aria: { label: 'Search' } + = search_field_tag 'search', nil, placeholder: 'Search', class: 'search-input dropdown-menu-toggle no-outline js-search-dashboard-options', spellcheck: false, tabindex: '1', autocomplete: 'off', data: { issues_path: issues_dashboard_url, mr_path: merge_requests_dashboard_url }, aria: { label: 'Search' } + %button.hidden.js-dropdown-search-toggle{ data: { toggle: 'dropdown' }} .dropdown-menu.dropdown-select = dropdown_content do %ul |