ArasLabs / toc-search-bar

Adds a search bar to the top of the TOC that allows users to search for specific ItemTypes
MIT License
5 stars 7 forks source link

Folders in TOC always default to closed after clearing search results. #1

Closed cgillis-aras closed 6 years ago

cgillis-aras commented 6 years ago

As the user types into the Search Bar, the folders in the TOC automatically expand to show the ItemTypes that match the search. After a user clears the search, the TOC resets and all of the folders will default to being closed even if some of them were open before the user started searching.

When the user then clicks to expand the folder, the folder still thinks it's open and will automatically close itself. This means that a user has to click any folder that was open before typing in the search bar twice to get it to open after clearing the search bar.

cgillis-aras commented 6 years ago

This was fixed in a pull request.