Commit 566c284d authored by Phil Hughes's avatar Phil Hughes

Merge branch 'autofocus-label-search' into 'master'

Add autofocus to label search fields

See merge request gitlab-org/gitlab!21508
parents 0589b92a e6f74412
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
= form_tag labels_filter_path, method: :get do = form_tag labels_filter_path, method: :get do
= hidden_field_tag :subscribed, params[:subscribed] = hidden_field_tag :subscribed, params[:subscribed]
.input-group .input-group
= search_field_tag :search, params[:search], { placeholder: _('Filter'), id: 'label-search', class: 'form-control search-text-input input-short', spellcheck: false } = search_field_tag :search, params[:search], { placeholder: _('Filter'), id: 'label-search', class: 'form-control search-text-input input-short', spellcheck: false, autofocus: true }
%span.input-group-append %span.input-group-append
%button.btn.btn-default{ type: "submit", "aria-label" => _('Submit search') } %button.btn.btn-default{ type: "submit", "aria-label" => _('Submit search') }
= icon("search") = icon("search")
......
---
title: Add autofocus to label search fields
merge_request: 21508
author:
type: changed
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