zostera / django-bootstrap5

Bootstrap 5 for Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrapper collides with input-group functionality

somas95 opened this issue · comments

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>

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.