When the facets form filters are all removed, and the form is submitted, the redirect URL is keeping the facets filter query parameters.
The problem seems to be on this line: https://git.drupalcode.org/project/facets_form/-/blob/1.x/src/Form/Facet...
$form_state->setRedirectUrl($this->buildRedirectUrl());
Here, after detecting that there are no active filters (because all are removed from the facet), the buildRedirectUrl() method is called with $exclude_filters argument FALSE (meaning that no facet filters should be removed from the query). However, buildRedirectUrl() gets the query from the request, and the current request contains the facets filters, which are not being removed.
1. Visit a search page with a facet form containing a checkbox and/or dropdown widget and select some options.
2. Submit the form.
3. After the page is reloaded, remove all filters and submit the form.
4. When the page is reloaded, all the removed filter options are selected (the filter query parameters are not removed from the URL)
Note: this issue only affects the submit button, the reset button is working as expected.
Needs work
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.