Skip to content

Commit 7a0ded0

Browse files
authored
Merge pull request #982 from newrelic/sunny/tabs-update-on-nav
fix: update Tabs when clicking link on same page
2 parents 223b021 + d559a28 commit 7a0ded0

File tree

1 file changed

+1
-1
lines changed
  • packages/gatsby-theme-newrelic/src/components/Tabs

1 file changed

+1
-1
lines changed

packages/gatsby-theme-newrelic/src/components/Tabs/Tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Tabs = ({ children, initialTab = 0 }) => {
7272
}
7373
}
7474
}
75-
}, []);
75+
}, [location.hash]);
7676

7777
const {
7878
site: {

0 commit comments

Comments
 (0)