Drupal 8: Views scrollTop behavior

Drupal 8 logoIt’s a weird piece of Drupal 8 out-of-the-box behavior: each time after you AJAX-load a views block with exposed filter, you are scrolled to the top of the block! It’s especially tiresome for mobile device users… Is there a way that we can fix it??

Removing this behavior entirely is a massive improvement. Here is a recipe to circumvent the issue for Drupal 7 – but it won’t work for Drupal 8! But search no more. Here for you is the exact solution:

You are welcome! 🙂

2 thoughts on “Drupal 8: Views scrollTop behavior

Comments are closed.