bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

select does not allow setting id attribute #597

Closed brandondrew closed 3 years ago

brandondrew commented 3 years ago

I can control the id of any of my fields except for the select fields:

= f.select        :job_title, job_title_selection, selected: job.preferred_title, required: true, id: "#{id_prefix}-job_title"

generates

<div class="form-group"><label class="required" for="reappointment_job_title">Job title</label><select class="form-control" name="reappointment[job_title]" id="reappointment_job_title"><option value="ACT INSTR-GRAD STDNT-GSHIP">Acting Instructor I-III - Partial Fee Remission</option>
<option value="blah">blah</option>
<option value="blah">blah</option>
</select>
</div>
brandondrew commented 3 years ago

for some reason GitHub was not allowing me to edit this after it was errantly submitted by a keystroke meant to move the cursor

lcreid commented 3 years ago

for some reason GitHub was not allowing me to edit this after it was errantly submitted by a keystroke meant to move the cursor

Odd.

lcreid commented 3 years ago

Thanks for getting in touch with us. Did you resolve your issue?