Disables autocomplete in filtered search

Sets `autocomplete=off` to issuable filtered serarch.
This commit is contained in:
Jacopo 2017-11-20 08:49:13 +01:00
parent a248bb769f
commit 0b3e3692eb
3 changed files with 11 additions and 1 deletions

View file

@ -140,7 +140,8 @@ module SearchHelper
placeholder: 'Search or filter results...',
data: {
'username-params' => @users.to_json(only: [:id, :username])
}
},
autocomplete: 'off'
}
if @project.present?

View file

@ -0,0 +1,5 @@
---
title: Disables autocomplete in filtered searc
merge_request: 15477
author: Jacopo Beschi @jacopo-beschi
type: added

View file

@ -102,6 +102,10 @@ describe SearchHelper do
it 'includes project base-endpoint' do
expect(search_filter_input_options('')[:data]['base-endpoint']).to eq(project_path(@project))
end
it 'includes autocomplete=off flag' do
expect(search_filter_input_options('')[:autocomplete]).to eq('off')
end
end
context 'group' do