Skip to content

Filters Do Not Persist #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jho-md opened this issue Apr 15, 2025 · 4 comments
Open

Filters Do Not Persist #156

jho-md opened this issue Apr 15, 2025 · 4 comments

Comments

@jho-md
Copy link

jho-md commented Apr 15, 2025

Describe the bug
When selecting an option for a filter, the filter works as expected. However, when you navigate back to the filter, the filter appears unset rather than showing the previously selected option.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Configure a collection with a dropdown filter.
  2. Create some sample entities.
  3. Choose one of the dropdown choices for the filter and see that the filter works as expected.
  4. Navigate back to the filter and see that the filter appears unset rather than persisting the previous selection.

Expected behavior
Navigating back to the filter should persist the previous selection.

Environment (please complete the following information):

  • Server OS: Windows
  • Browser: Chrome
  • Umbraco Version: 15.3.0
  • Product Version: 15.1.2

This item has been added to our backlog AB#51958

@jho-md jho-md added the bug Something isn't working label Apr 15, 2025
@nathanwoulfe
Copy link

@jho-md and again with the pending PR. Will aim to wrap up a few more issues and get a patch out soon.

@acoumb
Copy link

acoumb commented May 5, 2025

Hi @jho-md ,

This has been fixed with version 15.1.3 of UI Builder.

Thanks,
Adrian

@jho-md
Copy link
Author

jho-md commented May 5, 2025

@acoumb @nathanwoulfe Just upgraded to the latest and still having this issue. After setting the filter and applying, I click on the filter again and it appears unset.

@andrejd22
Copy link

andrejd22 commented May 6, 2025

@acoumb same, issue still exists. This issue is partially resolved. Now, after clicking on a collection item, opening the modal, and then closing it, the filters remain as expected. However, if the user navigates to a different collection and then returns, the filters are lost. This might be acceptable behavior, but in previous versions (13.x.x), filters were saved in Local Storage. We had a custom field implementation with a button that, when clicked, would apply the filters and open the collection with the filtered items. However, this is no longer possible in the current version. Since Local Storage based persistence no longer works, maybe query string parameters could be used to apply and persist filters across navigation?

@acoumb acoumb reopened this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants