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

Wrapper collides with input-group functionality

Open somas95 opened this issue 2 years ago • 1 comments
trafficstars

Bootstrap 5 allows for input-groups of several form fields, but django-bootstrap5 wraps each field in a div, which prevents the style classes to be applied correctly:

<div class="input-group">
    {% bootstrap_field form.field_a %}
    {% bootstrap_field form.field_b %}
</div>

somas95 avatar Jan 26 '23 11:01 somas95

I have this issue as well. It seems like this could be fixed by just making the wrapper optional with a way to disable it.

I tried setting wrapper_class='' but the extra layer of <div> still messes up the styling.

jayqi avatar May 13 '24 02:05 jayqi