Skip to content
Snippets Groups Projects
Commit 0938a70c authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Fix dropdown not storing selected state

parent 75c7b6af
No related branches found
No related tags found
1 merge request!104Propagate extra fields form group into WorkSpecifications
......@@ -183,10 +183,16 @@
data-filter="{{ filter.lookup_type }}"
style="width: 12rem">
{#for some reason, styling is not applied otherwise#}
<option selected value="">All</option>
{% if filter.default == "" %}
<option selected value="">All</option>
{% else %}
<option value="">All</option>
{% endif%}
{% for option in filter.choices %}
{% if filter.default == option.0 %}
<option value="{{ option.0 }}">{{ option.0 }}</option>
<option selected value="{{ option.0 }}">{{ option.0 }}</option>
{% else %}
<option value="{{ option.0 }}">{{ option.0 }}</option>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment