Skip to content

invalid-feedback should be inside input-group #417

@colinbm

Description

@colinbm

The style that triggers display of the error is (amongst others) .form-control.is-invalid ~ .invalid-feedback.

Currently the .invalid-feedback div is outside the .input-group and as .is-valid is set on the input itself, it's never displayed.

This has been addressed in twbs/bootstrap#25020

Added support for form validation feedback in input groups. .input-group now has flex-wrap: wrap; on by default, allowing you to place validation feedback within the .input-group and style it based on the input's overall state. This isn't applicable to file inputs though.

This means the .invalid-feedback should be located as the last item inside .input-group.

I will take a look at this myself and see if I can fix, but it's probably an easy fix for someone who knows the code better. Thanks if you get there first!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions