Fix scrolling to the top on docs type switch