django-bootstrap5 icon indicating copy to clipboard operation
django-bootstrap5 copied to clipboard

Form Validation Rounded Corners w. input-group.

Open tom-price opened this issue 2 years ago • 0 comments

With Bootstrap 5 when an input-group is used the has-validation class must be added to fix an issue with border radius as mentioned in the docs. However, this doesn't mention that if the validated input in the input group has no valid-feedback or invalid-feedback div then the issue with the border re-asserts itself.

This can be fixed by adding an empty <div></div> to the end of the input-group with has-validation set. See here for an example of the issue. Note the incorrect border around the before and after elements.

tom-price avatar Sep 02 '22 04:09 tom-price