Skip to content

Commit

Permalink
Merge pull request #175 from projectblacklight/numeric_input
Browse files Browse the repository at this point in the history
Change range inputs to type=number
  • Loading branch information
jrochkind authored Oct 26, 2021
2 parents 2af2184 + 4a77037 commit c9cd297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/range_limit_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def render_range_input(solr_field, type, input_label = nil, maxlength=4)

default = params["range"][solr_field][type] if params["range"] && params["range"][solr_field] && params["range"][solr_field][type]

html = text_field_tag("range[#{solr_field}][#{type}]", default, :maxlength=>maxlength, :class => "form-control text-center range_#{type}")
html = number_field_tag("range[#{solr_field}][#{type}]", default, :maxlength=>maxlength, :class => "form-control text-center range_#{type}")
html += label_tag("range[#{solr_field}][#{type}]", input_label, class: 'sr-only') if input_label.present?
html
end
Expand Down

0 comments on commit c9cd297

Please sign in to comment.