[BUG] render_field macro leaving hidden field labels visible
caffeinatedMike opened this issue · comments
When using the render_field
macro, hidden fields' labels are still shown.
Example:
{% from 'bootstrap/form.html' import render_field %}
{% extends 'base.html' %}
{% block content %}
<div class="container">
<form action="" method="post" class="form" role="form">
{{ render_field(form.csrf_token) }}
</form>
</div>
{% endblock %}
Results in "CSRF Token" being displayed on the page