Merge pull request #3594 from alphagov/fix-live-search-sub-areas

Don’t filter ‘All of’ choice with live search
This commit is contained in:
Chris Hill-Scott
2020-09-07 12:57:58 +01:00
committed by GitHub
2 changed files with 20 additions and 6 deletions

View File

@@ -22,9 +22,11 @@
{{ form.select_all }}
</div>
{{ live_search(target_selector='.govuk-checkboxes__item', show=show_search_form, form=search_form, label='Or by electoral ward') }}
{{ live_search(target_selector='#sub-areas .govuk-checkboxes__item', show=show_search_form, form=search_form, label='Or by electoral ward') }}
{{ form.areas }}
<div id="sub-areas">
{{ form.areas }}
</div>
{{ sticky_page_footer('Add to broadcast') }}