Skip to content

Commit 4b00f3f

Browse files
authored
Add argument to skip errorlist through knockout on common form (#3704)
Update common knockout form field template to add argument to skip errorlist display through knockout observables.
1 parent 27d9ba3 commit 4b00f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/templates/core/ko_form_field.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% else %}
44
<!-- Begin: {{ field.name }} -->
55
{{ field.errors }}
6-
{% if 'data-bind' in field.field.widget.attrs %}
6+
{% if not skip_errorlist and 'data-bind' in field.field.widget.attrs %}
77
<ul
88
class="errorlist"
99
data-bind="visible: error_{{ field.name }}"

0 commit comments

Comments
 (0)