Skip to content

Commit

Permalink
Merge pull request #3415 from alphagov/corrections
Browse files Browse the repository at this point in the history
Disable corrections across search fields
  • Loading branch information
csutter authored Jul 30, 2024
2 parents 4147fc6 + 0c7ff94 commit f9dc907
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/finders/_facet_collection.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
type: 'search',
value: result_set_presenter.user_supplied_keywords,
inline_label: false,
label_text: sanitize(content_item.label_text) || label_text
label_text: sanitize(content_item.label_text) || label_text,
disable_corrections: true,
} %>
</div>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions app/views/finders/_show_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
type: 'search',
value: result_set_presenter.user_supplied_keywords,
on_govuk_blue: inverse,
disable_corrections: true,
} %>
</div>
<div id="js-spelling-suggestions" class="spelling-suggestions">
Expand Down
3 changes: 2 additions & 1 deletion app/views/search/_search_field.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
inline_label: false,
label_text: label_text,
size: "large",
id: "search-main"
id: "search-main",
disable_corrections: true,
} %>

<%= hidden_field_tag("filter_manual[]", params[:filter_manual]) if params[:filter_manual] %>
Expand Down

0 comments on commit f9dc907

Please sign in to comment.