Skip to content

Validating input group #765

@LocalHeroPro

Description

@LocalHeroPro

Subject of the issue

When validating input group with Bootstrap 5, span is split to new line.

Your environment

  • version of this package: 4.5.1
  • version of Laravel: 8.67.0

Steps to reproduce

https://getbootstrap.com/docs/5.1/forms/input-group/

  1. make form
<div class="input-group mb-3">
  <input id="user_group-email" type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2">
  <span class="input-group-text" id="basic-addon2">@example.com</span>
</div>
  1. click validate
  2. we get that
<div id="user_group-email-error" class="invalid-feedback">Some validation message</div>

between input and span against on end .input-group.

Expected behaviour

Validation message have to go on end of .input-group class.
image

Actual behaviour

Validation message go after input, but before span.
Before validation
image
After validation
image

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