Skip to content

Checkbox not displaying in Bootstrap 5 #1736

@MtnBiker

Description

@MtnBiker

Checkbox not rendering correctly in Bootstrap 5. I upgraded to v5 to get another feature.

Environment

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:
image

Expected behavior

A checkbox.

The short gray line does react when click on and turns blue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions