Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapper collides with input-group functionality #438

Open
somas95 opened this issue Jan 26, 2023 · 1 comment
Open

Wrapper collides with input-group functionality #438

somas95 opened this issue Jan 26, 2023 · 1 comment

Comments

@somas95
Copy link

somas95 commented Jan 26, 2023

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>
@jayqi
Copy link

jayqi commented May 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants