DigitalCommons / mykomap

A web application for mapping initiatives in the Solidarity Economy
3 stars 0 forks source link

Filters not clearing properly when moving from Search to Directory panel. #238

Closed ColmDC closed 1 month ago

ColmDC commented 4 months ago

Please track against the clockify project [DotCoop - Misc]

Describe the bug

If you return to the Directory panel after carrying out some filters/text searches, all the filters/searches are cleared, bar those on the field that is displayed in the Directory panel. But if you then return to the search panel those original search and filter options are there in the drop down and Search box, but they are no longer applied to data.

To Reproduce**

Steps to reproduce the behavior:

  1. Open up https://maps.coop/ica/ map
  2. Go to Search panel
  3. Select Workers from the Typology filter
  4. The filter is applied to the map.
  5. Return to the Directory panel by clicking on the burger.
  6. The filter is removed and all the co-ops are visible again on the map and the Directory panel is displayed.
  7. Return to the Search panel by clicking the glass
  8. There is no change to what co-ops are visible, but the Workers option still looks to be selected in the Typology filter. This is incorrect behaviour.

Expected behavior When returning to the Search panel at step 8, there should be no options set in the filters.

ColmDC commented 1 month ago

This behaviour was exibited on the ica map with version 1.3 !

No longer a problem in mykomap@3.1.7