MDL-68994 user: Reset filterverb value when resetting filter
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 9 Jun 2020 11:09:03 +0000 (19:09 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 10 Jun 2020 06:19:02 +0000 (14:19 +0800)
user/amd/build/participantsfilter.min.js
user/amd/build/participantsfilter.min.js.map
user/amd/src/participantsfilter.js

index 9a8b390..f51f237 100644 (file)
Binary files a/user/amd/build/participantsfilter.min.js and b/user/amd/build/participantsfilter.min.js differ
index e986e19..22cee96 100644 (file)
Binary files a/user/amd/build/participantsfilter.min.js.map and b/user/amd/build/participantsfilter.min.js.map differ
index 539909a..004020d 100644 (file)
@@ -336,6 +336,7 @@ export const init = participantsRegionId => {
         if (filters.length === 1) {
             filterSet.querySelector(Selectors.filterset.regions.filtermatch).classList.add('hidden');
             filterSet.querySelector(Selectors.filterset.fields.join).value = 1;
         if (filters.length === 1) {
             filterSet.querySelector(Selectors.filterset.regions.filtermatch).classList.add('hidden');
             filterSet.querySelector(Selectors.filterset.fields.join).value = 1;
+            filterSet.dataset.filterverb = 1;
         } else {
             filterSet.querySelector(Selectors.filterset.regions.filtermatch).classList.remove('hidden');
         }
         } else {
             filterSet.querySelector(Selectors.filterset.regions.filtermatch).classList.remove('hidden');
         }