Gatsby: [www] searching for doc doesn't select doc on sidebar

Created on 17 Aug 2018  路  4Comments  路  Source: gatsbyjs/gatsby

From user interviews:

Actions

  1. Type adding search" into search bar
  2. Hit enter to select first search result

Expected behavior

  1. Page appears
  2. Title "Adding Search" selected on sidebar and visible

Actual behavior

  1. Page appears, but with no margin above title
  2. No items on sidebar are selected
documentation

Most helpful comment

Thank you @kartiklad! 馃

All 4 comments

Thanks for adding this @shannonbux! 馃檹

Hey @shannonbux, I think I've found the bug which causes this issue in the side bar. It's basically to do with a condition in getActiveItem. I also noticed that if the URL has a hash in it and you refresh the page, the Sidebar selection doesn't work.

I've raised a PR which fixes both issues. #7467

Hey @kartiklad! 馃憢
Nice!!! Will take a look at your PR in a minute an hour!

Thank you @kartiklad! 馃

Was this page helpful?
0 / 5 - 0 ratings