DPGAlliance / publicgoods-scripts

Scripts to generate static site from WordPress
http://digitalpublicgoods.net
MIT License
3 stars 6 forks source link

Select all / Deselect all functionality in registry's DPG filter #208

Closed law909 closed 10 months ago

law909 commented 10 months ago

Select all / Deselect all

In the Registry home page, the current "select all" functionality doesn't function properly:

How does it work now?

Bug 1) If I deselect all (unselecting all types and SDGs), I then cannot add back individual items by selecting one by one.

Bug 2) If I leave "select all" enabled, and then uncheck each type in turn, then turning them back on does not restore the category to the list.

How it should work:

NEW feature: Select all and deselect all function should work separately both for DPG Types and SDGs. User should be able to select/deselect all of the types and also for SDGs.

When all is deselected, the selected item should return a result if there's a match. (Bugs mentioned above)

When all is selected, unselected items should be filtered out. (This works fine)