datagrove / marketplace

2 stars 5 forks source link

Clear All Filters button isn't clearing the search bar text #195

Closed meagan13 closed 8 months ago

meagan13 commented 8 months ago

Describe the bug If you use the search bar and click search it pulls up posts that include that word (as expected), but if you click clear all filters it does not bring back all posts - posts are not reset to all data

To Reproduce Enter "Image" in the search bar Click the search button or press enter Click the clear all filters button Posts rendered on the page don't change

Expected behavior Enter "Image" in the search bar Click the search button or press enter Click the clear all filters button All posts should render on the page

Proposed Solution Add setPosts() to the clear all filters button function

meagan13 commented 8 months ago

I fixed it!