From 56cc9ce14d5d84da562c282e672aedc57dd4dca6 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 20 Feb 2017 16:59:32 +1100 Subject: [PATCH] Fix hiding of selects when switchable Change-Id: I6e6ddefa6f1dcef6b8f1500ec5f09e73d3f0545f Closes-Bug: 1658383 --- horizon/templates/horizon/common/fields/_themable_select.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horizon/templates/horizon/common/fields/_themable_select.html b/horizon/templates/horizon/common/fields/_themable_select.html index 2d90e771cf..be31382307 100644 --- a/horizon/templates/horizon/common/fields/_themable_select.html +++ b/horizon/templates/horizon/common/fields/_themable_select.html @@ -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 %}