Skip to content

Bootstrap 4 Framework uses wrong classes for input group & no classes for checkbox #581

@marvinschroeder

Description

@marvinschroeder

There were currently two bugs with the Bootstrap 4 framework. Tested in Bootstrap v4.1.3 and v4.3.1 (latest) and used in Laravel 5.7.*

Input Group with Append

Problem: appended/prepended text is not displaying correctly because of wrong class "input-group-addon".

Line used:

Former::text('test')->append('€');

Renders:

<div class="form-group">
 <div class="input-group">
  <input class="form-control" id="test" type="text" name="test">
  <span class="input-group-addon"></span>
 </div>
</div>

Expected:

<div class="form-group">
  <div class="input-group">
    <input class="form-control" id="test" type="text" name="test">
    <div class="input-group-append">
      <span class="input-group-text"></span>
    </div>
  </div>
</div>

Checkbox

Problem: small displaying tweaks because of missing classes for input and label.

Line used:

Former::checkbox('test')->text('Test');

Renders:

<div class="form-group">
  <div class="form-check">
    <input id="test" type="checkbox" name="test" value="1">
    <label for="test" class="">Test</label>
  </div>
</div>

Expected:

<div class="form-group">
  <div class="form-check">
    <input class="form-check-input" id="test" type="checkbox" name="test" value="1">
    <label for="test" class="form-check-label">Test</label>
  </div>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions