mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 11:58:24 -04:00
Don’t filter ‘All of’ choice with live search
Because the ‘All of’ choice appears above the search field, it shouldn’t be filtered by the search field. We can fix this by wrapping the sub-areas in a `<div>` and make the selector more specific.
This commit is contained in:
@@ -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') }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user