Fix hiding of selects when switchable

Change-Id: I6e6ddefa6f1dcef6b8f1500ec5f09e73d3f0545f
Closes-Bug: 1658383
(cherry picked from commit 56cc9ce14d)
This commit is contained in:
Richard Jones 2017-02-20 16:59:32 +11:00 committed by Rob Cresswell
parent 3612ac6dfe
commit 5701a15f82
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
name="{{ name }}"
{% endif %}
{% for k,v in select_attrs.items %}
{% if k != 'class' %}
{% if k != 'class' or 'switch' in v %}
{{ k|safe }}="{{ v }}"
{% endif %}
{% endfor %}