Commit 0b3e3692 authored by Jacopo's avatar Jacopo

Disables autocomplete in filtered search

Sets `autocomplete=off` to issuable filtered serarch.
parent a248bb76
...@@ -140,7 +140,8 @@ module SearchHelper ...@@ -140,7 +140,8 @@ module SearchHelper
placeholder: 'Search or filter results...', placeholder: 'Search or filter results...',
data: { data: {
'username-params' => @users.to_json(only: [:id, :username]) 'username-params' => @users.to_json(only: [:id, :username])
} },
autocomplete: 'off'
} }
if @project.present? if @project.present?
......
---
title: Disables autocomplete in filtered searc
merge_request: 15477
author: Jacopo Beschi @jacopo-beschi
type: added
...@@ -102,6 +102,10 @@ describe SearchHelper do ...@@ -102,6 +102,10 @@ describe SearchHelper do
it 'includes project base-endpoint' do it 'includes project base-endpoint' do
expect(search_filter_input_options('')[:data]['base-endpoint']).to eq(project_path(@project)) expect(search_filter_input_options('')[:data]['base-endpoint']).to eq(project_path(@project))
end end
it 'includes autocomplete=off flag' do
expect(search_filter_input_options('')[:autocomplete]).to eq('off')
end
end end
context 'group' do context 'group' do
......
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