SearchKit - Fix clearing selection behavior
authorColeman Watts <coleman@civicrm.org>
Sat, 27 Feb 2021 01:50:57 +0000 (20:50 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 27 Feb 2021 01:50:57 +0000 (20:50 -0500)
commit3b80106901dbcb63fb0d4a8f0943d4a3e8ef5555
tree87c60da6c5ea02779fed600f824490856822a041
parent97032c89eaae940fee20beb6ef81ea9abd1fd2d2
SearchKit - Fix clearing selection behavior

The variables `allRowsSelected` and `selectedRows` were sometimes getting out-of-sync.
This adds a function to help ensure they both get updated at the same time when the selection needs to be cleared.
ext/search/ang/crmSearchAdmin/crmSearchAdmin.component.js