Skip to content

"input-group" requires "has-validation" on error #795

@RouL

Description

@RouL

Currently, if you append or prepend an input, you lose the rounded border on the right side of the "input-group" if there is an error message shown for the field.
Bootstrap requires an extra class "has-validation" on the "input-group"-div to avoid this issue:

To fix issues with border radius, input groups require an additional .has-validation class.

https://getbootstrap.com/docs/5.3/forms/validation/#server-side

It could easily be added in BootstrapForm::Helpers::Bootstrap#prepend_and_append_input.

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