Skip to content

Commit

Permalink
Add missing class to the search form
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 30, 2020
1 parent b5f6e75 commit b010bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/blacklight/search_bar_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Blacklight
class SearchBarComponent < ::ViewComponent::Base
# rubocop:disable Metrics/ParameterLists
def initialize(url:, params:, classes: [], presenter: nil, prefix: '', method: 'GET', q: nil, search_field: nil, search_fields: [], autocomplete_path: nil, autofocus: nil)
def initialize(url:, params:, classes: ['search-query-form'], presenter: nil, prefix: '', method: 'GET', q: nil, search_field: nil, search_fields: [], autocomplete_path: nil, autofocus: nil)
@url = url
@q = q || params[:q]
@search_field = search_field || params[:search_field]
Expand Down

0 comments on commit b010bf5

Please sign in to comment.