Skip to content

Commit

Permalink
Maintain user's choice of school in consent form
Browse files Browse the repository at this point in the history
When we switched away from `options_for_select` in order to use
data-hint, we forgot to maintain this functionality.
  • Loading branch information
tvararu committed Sep 27, 2024
1 parent f9eabf9 commit e8cd706
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<% @consent_form.eligible_schools.each do |school| %>
<%= tag.option(school.name,
value: school.id,
selected: school.id == @consent_form.location_id,
data: { hint: school.address_parts.join(", ") }) %>
<% end %>
<% end %>
Expand Down

0 comments on commit e8cd706

Please sign in to comment.