SearchKit: Entities that are no longer results of the search remain selected
If you search for Contacts in SearchKit, select all or some of the Contacts, then edit your search to make it more specific and click search again, the previously selected Contacts, who may not be within the results of the current search, remain selected. This not only gives nonsensical totals (100 selected of 10 results
), it can result in unintended changes, for instance if you were to add or remove the Contacts from a group, expecting to be adding or removing the results of your current search, not the results of your previous search (not a theoretical concern, this actually happened to me).
I think the solution is pretty simple, just clear the selection of entities whenever we search again. I can't see why we would want the selected entities to remain selected when we are doing a new search.