-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Checkbox not rendering correctly in Bootstrap 5. I upgraded to v5 to get another feature.
Environment
- Ruby [2.6.6]
- Rails [rails 6.0.3.6] gem 'rails', '~> 6.0'
- Simple Form [simple_form 5.1.0] gem 'simple_form'
- Bootstrap
yarn.lock - bootstrap@^5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.0.1.tgz#e7939d599119dc818a90478a2a299bdaff037e09"
integrity sha512-Fl79+wsLOZKoiU345KeEaWD0ik8WKRI5zm0YSPj2oF1Qr+BO7z0fco6GbUtqjoG1h4VI89PeKJnMsMMVQdKKTw==
Current behavior. Extant is a boolean
<%= simple_form_for(@location) do |form| %>
<%= form.input :extant %>
HTML generated
<div class="form-check"><input name="location[extant]" type="hidden" value="0"><input class="form-check-input boolean optional" type="checkbox" value="1" name="location[extant]" id="location_extant"><label class="form-check-label boolean optional" for="location_extant">Extant</label></div>
Screenshot below (the green line is from the text field directly above). The short gray line is the checkbox:

Expected behavior
A checkbox.
The short gray line does react when click on and turns blue.
Metadata
Metadata
Assignees
Labels
No labels