algolia/documentation-editor

Docsearch dropdown not always working

Closed this issue · 3 comments

On https://www.algolia.com/doc/ruby, if I search for browse and select the second result, nothing happens:

image

Uncaught TypeError: Cannot read property 'top' of undefined

$(window).on('hashchange', function(event) {
  $('html, body').scrollTop($(window.location.hash).offset().top - offset);
 });
redox commented

Arg, actually the index content is outdated and we're relying on finding the $(window.location.hash) DOM element in the page. Which is not true here, so undefined & fail. I'll run the re-indexing now.

Isn't it a DocSearch crawling?

redox commented

Isn't it a DocSearch crawling?

Not yet :)