DUPLICATE: Filter.min.js Disabled Scroll Restoration

Browser: Chrome Version 139.0.7258.139 (Official Build) (arm64)
OS: macOS
URL: Factor UTB

Hey Bricks team,

I’ve noticed that when I add the Filter - Search element to a page, scroll restoration no longer works as expected. For example:

  • If I refresh the page, the scroll position is always reset to the top instead of being restored.
  • If I navigate back to the page from another page, the same thing happens.

After some debugging, I found the cause - filter.min.js is setting:

history.scrollRestoration = 'manual';

This breaks a pretty standard expectation for users.

As far as I can tell, setting this back to ‘auto’ doesn’t seem to break the filtering functionality.

Let me know if there’s anything we can do about this.

Thanks for all your hard work!

Hi @josh_mitch,

we do already have a report about that, and a forum topic:

Because of that, I’ll close this down and mark it as a duplicate.

Without this code, the browser will have weird behavior, like scrolling to some other places when performing back and forward. This is not only related to Bricks Filters, but WPGridBuilder also had the same behavior last time I checked.
We have not yet found a solution.

Best regards,
Matej

1 Like