Browse Source

Set selected value correctly

pull/183/head
baarkerlounger 3 years ago
parent
commit
c2805ac82e
  1. 2
      app/views/form/_select_question.html.erb

2
app/views/form/_select_question.html.erb

@ -6,6 +6,6 @@
caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil,
label: { text: question.header, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" },
hint: { text: question.hint_text&.html_safe },
options: { disabled: [""], selected: [@case_log.public_send(question.id) || ""] },
options: { disabled: [""], selected: @case_log.public_send(question.id) || "" },
"data-controller": "accessible-autocomplete"
%>

Loading…
Cancel
Save