-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
field_class applied two times for field_file #108
Comments
Are you suggesting that the |
I did a quick compare between ...
{% elif field|is_file and use_custom_control %}
{% include 'bootstrap4/layout/field_file.html' %}
{% else %}
<div class="{{ field_class }}">
{% if field|is_select and use_custom_control %}
{% crispy_field field 'class' 'custom-select' %}
{% else %}
{% crispy_field field %}
{% endif %}
{% include 'bootstrap4/layout/help_text_and_errors.html' %}
</div>
... In contrast to |
smithdc1
added a commit
that referenced
this issue
Jul 5, 2022
smithdc1
added a commit
that referenced
this issue
Jul 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in
field.html
iffield_class
property is set, inputs are wrapped in a div with field_css as css attribute:and in
field_file.html
all thing are wrapped in a div with css class asfield_css
which results in nested divs with duplicate css like this:
Unfortunately this ruins the UI and file input becomes shorter than other fields.
Is this intended? If not, what can I do except overriding field_file.html?
The text was updated successfully, but these errors were encountered: