The DataRecordsSelectionChangeMessage is not triggered by the feature selection being cleared on the map, it should be.
https://developers.arcgis.com/experience-builder/api-reference/jimu-core/DataRecordsSelectionChangeM...