Closed TaiWilkin closed 3 years ago
@TaiWilkin Can these always keep the categories open even when no results are returned? Inside each category there is text that says "Contains no matching questions" which I think will help with clarity.
Updated to only open categories in response to search, not close them.
Thanks for the reviews!
Overview
When the user enters a search term on the questions page, categories are automatically opened if they contain matching questions, and closed if they have no matching questions. Note that this means that if the user has manually opened or closed a category, then enters or changes a search, the expansion of the accordion will be changed, as there isn't a reasonable way to track which categories have been manually toggled by the user.
Connects #73
Demo
Testing Instructions